Staredit Network

Staredit Network -> StarForge -> or die();
Report, edit, etc...Posted by RexyRex on 2005-01-27 at 15:46:43
I was playing with the starforge trigger system and then randomly did or die(); because I'm learning PHP. Instead of "Parameter not recognized" or any of that I got a runtime error. Is that becuase I used die(); ?
Report, edit, etc...Posted by Clokr_ on 2005-01-28 at 07:40:00
It has to be a bug. It would be really funny that die() kills it tongue.gif
Anyway, it happens somtimes, 'die' word is unrelated tongue.gif
Report, edit, etc...Posted by RexyRex on 2005-01-28 at 14:00:35
No, it's not that.
In PHP die is the way saying "If it didn't work."
Report, edit, etc...Posted by Clokr_ on 2005-01-28 at 19:07:28
I don't think 'die' has any special meaning in SF.
Report, edit, etc...Posted by Oo.Mario.oO on 2005-01-30 at 11:44:08
well that is very starnage never herd of starforge crashing over die() but i learn something new everday
Report, edit, etc...Posted by Yenku on 2005-01-31 at 12:54:51
lol die()
Report, edit, etc...Posted by notnuclearrabbit on 2005-02-01 at 06:05:08
[center]You might as well put in a Crash(); trigger while you're at it![/center]
Report, edit, etc...Posted by RexyRex on 2005-02-01 at 12:36:31
Maybe I just should have told this to someone who knows PHP ;).
Report, edit, etc...Posted by .Coko[CK] on 2005-02-01 at 13:17:53
Starforge doesn't use PHP for its language, therefore this has no relevance, past it happening at the same time you wrote in die();, more than likely it was trying to use it as a parameter, causing it to run some error in the syntax that created that failure
Report, edit, etc...Posted by AqoTrooper on 2005-02-01 at 15:07:50
What Coko said is very true, only that he forgot to mention something -
Starcraft was created in C++, all of those word(); are functions saved on your SC CD, those functions were written by blizzard.
Every function might as well contain inner varibles that it needs to run, you have to input the correct varibles or you get an error (you can't input letter in an INT or number bigger than 256 in CHAR).
If you put functions that doesn't exist, you are supposed to get an error since your program won't know what to do with it.

If you're gonna play with it, at least create libreries and saved functions - example:

QUOTE
#include<iostream.h>

void main(void)
{
char p1 = 2;
cout<<"This is a funny error p"<< endl;
}

it might either display the text "This is a funny error p" on the top left edge of your screen and cause player 1 to gain control of player 2's units, or cause a bug.
Just go check, but if you use unexisting functions - at least create them and than try using them.
Report, edit, etc...Posted by Heimdal on 2005-02-01 at 16:29:03
The functions you see in Starforge don't necessarily correspond to functions in Starcraft. I made them up based on the format of each condition and action. You can actually make up your own if you edit the conditions.lst or actions.lst files in the data folder. You would have to do this by replacing an existing one, however - the number of actions and conditions is hardcoded in Starforge.
Report, edit, etc...Posted by RexyRex on 2005-02-02 at 01:14:42
Well then I have been proven wrong.
And I was stupid enough to think StarForge would recognize PHP.
QUOTE(MiniMoose2707)
ยป Topic Locked
Next Page (1)