Staredit Network > Forums > SC1 Mapping Tools > Topic: ProTRG v1.1
ProTRG v1.1
Jan 10 2010, 11:13 pm
By: poiuy_qwert
Pages: < 1 3 4 5

Jul 25 2010, 6:08 pm Cinolt Post #81

It makes some sense, and I've verified that it does what I want. I'm assuming that this initialization will only occur once, so I don't need to delete any members of the dcList. The only other minor issue with yours is that for multiple variable assignments it needs the number of variables passed to the function. So, essentially what I'm doing is checking every possible number of variables as so:
timer, vhp, posX, posY = dcList[:0]
*program catches an error, loop again*
timer, vhp, posX, posY = dcList[:1]
*program catches an error, loop again*
timer, vhp, posX, posY = dcList[:2]
*program catches an error, loop again*
timer, vhp, posX, posY = dcList[:3]
*program catches an error, loop again*
timer, vhp, posX, posY = dcList[:4]
*program doesn't catch an error, so break out of the loop*

Therefore the process is made even more easier by not having to know the number of variables being assigned.


Jun 9 2018, 1:12 am EsX_Raptor Post #82

The links are dead. Could someone please redirect me?


Pages: < 1 3 4 5
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:10 am]
Zycorax -- You can buy little things like name colours.
[07:52 am]
IlyaSnopchenko -- What do the minerals do, anyway :)
[06:47 am]
O)FaRTy1billion[MM] -- I think I still have a couple dat files to finish, and people have complained about save games being broken with it D:
[06:46 am]
O)FaRTy1billion[MM] -- not as big of a pain as updating the static arrays in SC's code, I imagine
[06:14 am]
Suicidal Insanity -- FaRTy1billion
FaRTy1billion shouted: Suicidal Insanity dat files are easy though :( datext just scales the file to the new number of dat entries, and then gets rid of silly things like restricting only certain IDs having certain properties (mostly to make it easier for scaling)
Well I have static arrays and consts for the lengths that are used in dozens of places, just a pain to update. And many dat files have like 3 or 4 different lengths that they use
[06:03 am]
Corbo -- i am gonna sue you!
[06:02 am]
O)FaRTy1billion[MM] -- my minerals have been as low as like 200, so who knows lol
[06:02 am]
O)FaRTy1billion[MM] -- or maybe it was when I bought the name glwo
[06:01 am]
O)FaRTy1billion[MM] -- no i probably gave them to somebody else
[06:00 am]
Corbo -- You fell into your gambling addiction again, didn't you? :mad:
Please log in to shout.

Members Online: Roy