Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 02 Nov 2008
Offline Last Active Today, 08:01 PM

#5188689 O(pow(N,12))

Posted by slicer4ever on 22 October 2014 - 10:38 PM

...so much indentation...

#5187227 max size for level using floats

Posted by slicer4ever on 15 October 2014 - 02:34 PM

slicer says 1,000,000 is too big... slicer: have you tried that?

by the way your talking, it sounds like you plan to setup a near/far plane with an absolute worse case ratio(i.e 1:1,000,000), this will likely mean you'll see a crap ton of z-fighting.

#5184113 This chat, apparently, is a gigantic coding horror

Posted by slicer4ever on 30 September 2014 - 01:30 PM

Yea when me+bact first discovered them(which was a complete accident, as bact was showing some code iirc, and it had ,A, in it) anyway me+him surmised it's some type custom encoding scheme, rather than using base64.

Also if you went through the source code did you try out the bad words?

#5183742 Making a shot harder to pull off.

Posted by slicer4ever on 29 September 2014 - 08:41 AM

Make the heart a smaller target internally? Have you acfually playtested that this would be the case to get heart kills?

#5180303 Why Do I Lose Data In a Char Pointer When Passed Into or Over a Function?

Posted by slicer4ever on 14 September 2014 - 02:10 PM

it's hard to tell since you didn't give an actual working example, but my guess is your returning stack memory from doLogic, and when you call doMoreMath that stack memory is being overwritten, because you never should return stack allocated memory.

#5176491 Welcome your new Visual Arts forum moderator

Posted by slicer4ever on 27 August 2014 - 01:26 PM

I believe in you riu! =-P

#5175843 free private SVN with biggest disk space?

Posted by slicer4ever on 24 August 2014 - 11:09 AM

Yep, most flexible free solution is to host it yourself laugh.png Leave a PC on 24/7 running the SVN daemon, and tell your router to forward the SVN ports on to that PC.

pretty much this, i use VisualSVN as the server, and it's pretty straight forward setup. of course this means you either need an isp that gives you a public ip address(ours isn't technically a static address, but it hasn't been changed in over a year).

#5175821 What does a material contain

Posted by slicer4ever on 24 August 2014 - 09:14 AM

Happy, I use pretty much an exactly similar system, so i'll ask you, how do you go about handling mesh/model transformation information with the material? do you pass a seperate/secondary material that holds the model's transformation, or something else?

#5175042 Strange output when writing to a file object and printing it out

Posted by slicer4ever on 20 August 2014 - 10:11 AM

Yeaaaah !!!

from sys import argvscript, addingfile = argv[0],argv[1]def print_all(k):     k.write("i want to make it write in the file then print the file")     k.seek(0)     print k.read()usingfile = open(addingfile, "w+")print_all(usingfile)print "Done!"
but i should type ("w+")
w+ : Opens a file for both writing and reading. Overwrites the existing file if the file exists. If the file does not exist, creates a new file for reading and writing
r+ : Opens a file for both reading and writing. The file pointer will be at the beginning of the file.
i can't type r+ !!!
(The file pointer will be at the beginning of the file)
i type seek(0) so r+ should run without problem !

The file pointer i will read about it

Does the file already exists?, it's likely r+ won't work if it can't find the requested file. However w+ will create the file if it does not exist. In the end this is a good exercise on error handling and validation techniques. Don't assume that the file has been opened correctly, always check that you have a valid file, and if you do not, then display an appropiate dialog to the user.

Edit: the reason you are likely being downvoted is because A: It is not our responsibilty to tell you when you can move on. And B: You don't appear to have a good grasp on how file handles work.

#5174890 Strange output when writing to a file object and printing it out

Posted by slicer4ever on 19 August 2014 - 06:57 PM

i'm not 100% familiar with python, but assuming it's i/o system is like other file streams in other languages, then you need to rewind(or seek) back to the beginning of the file to read it's content. i'm surprised that python isn't returning an empty string, but maybe calling read while at the EOF is undefined?

#5174860 Apparently, no so simple Math.....

Posted by slicer4ever on 19 August 2014 - 04:24 PM

I see your min/max ops and raise you blocking logic!

int damageTaken = attack - defense;
if (damageTaken > 0)
    health -= damageTaken;
    Console.WriteLine("Attack blocked!");

In pokemon, all offensive attacks do at least one damage even if they should be 100% negated(except for move types that are uneffective against the opponent types(i.e ghost/normal iirc))

so, let me just fix chubu's real quick:
health -= max(attack - defense, 1)

#5172891 HLSL Bump Mapping Problem (Solved)

Posted by slicer4ever on 11 August 2014 - 01:55 PM

Why do you delete all your posts? That is rude!

seconded, would it be possible for a mod to restore his posts?

#5169228 Game Engine that will meet my requirements

Posted by slicer4ever on 25 July 2014 - 09:26 PM


Maybe I am underestimating a bit the time required,on another note art creation is my  thing so that wouldn't be that hard.I will take your advice and learn Flash.

even with unity, unreal engine, rpgmaker, flash actionscript, etc. everything you've talked about is years worth of knowledge you'd have to gain to make something you are envisioning. however if you are very good with art, it might be better to find someone who can program, while you do the artwork. this can be a ton of work, as usually a programmer can approach an artist more easily than an artist can approach a programmer, but it's something that can be done with a good bit of effort.

start making out the concept art of what you want to do, and building the details on what you want to do, with this in tow, you might be able to find someone willing to share your vision. but to do it yourself is going to require ALOT of learning, that far exceeds anything you'll accomplish in a single summer.

#5168494 projected lines

Posted by slicer4ever on 22 July 2014 - 04:38 PM

float apitch = VALIDUJ(pitch);             //validuj is a funciton that ranged degrees between 0 and 360, so if angle is -10 it'll be 350



glGetDoublev(GL_MODELVIEW_MATRIX, mmatrix);
glGetDoublev(GL_PROJECTION_MATRIX, pmatrix);
glGetIntegerv(GL_VIEWPORT, vmatrix);

int npk = int(apitch);

int pupka = npk-npk%10;
       float angel;

glPush2DDrawing();   //activates ortho mode
for (i=pupka-10; i <= pupka+10; i=i+10) {
//angel = VALIDUJ(float(i));
z = 10.0f*cos(float(i)*imopi);
y = 10.0f*sin(float(i)*imopi);
   glhProjectd(1.750f,y,z,mmatrix,pmatrix,vmatrix,resxyz);   //projects from 3d to 2d, its gluproject function see http://www.opengl.org/wiki/GluProject_and_gluUnProject_code


make int pupka = npk-npk%10; into: int pupka = -(npk-npk%10);

#5168233 Concern on "paying to enter" a project

Posted by slicer4ever on 21 July 2014 - 04:43 PM

i'd cut him loose.  what do you expect him to contribute if he's not willing to even purchase the game.