yes that code could work
Announcement
Collapse
No announcement yet.
Knee-Deep in SLIC
Collapse
X
-
"Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
The BIG MC making ctp2 a much unsafer place.
Visit the big mc’s website
-
Originally posted by The Big Mc
I would like to see it when it is done
I should be done this month unless any bugs show up in testing that passed me by so far.Concrete, Abstract, or Squoingy?
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Comment
-
hoow wise master I have travelled many nights to try to find a slicer with my skill could you point me in the direction of a master slicer."Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
The BIG MC making ctp2 a much unsafer place.
Visit the big mc’s website
Comment
-
Originally posted by MrBaggins
Out of curiousity, do we know for a fact that *this*
Quote by MrOgre
Important note! As this documenation is being prepared, the first patch for CTP2 is about to be released. Unfortunately a bug with functions was discovered too late to fix. Specifically, in some cases, using members of unit, army, city, and location variables that are function parameters may not always work as expected. There is, however, a workaround. Copy the function parameter to a local variable and use that variable instead.
was fixed, in every case?
The author apologizes for this and promises that if there is another patch it will be fixed. But the above workaround should always work.
-MartinCiv2 military advisor: "No complaints, Sir!"
Comment
-
tipical for activsion."Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
The BIG MC making ctp2 a much unsafer place.
Visit the big mc’s website
Comment
-
Originally posted by MrBaggins
weren't there two patches?
1.1
and
1.11
Anyway... I guess its wise to be wary of the warning, and copy these non-ints locally, when you use them.
To the promisse again they said if and not when, so it was at this time already questionable if there would be another patch.
-MartinCiv2 military advisor: "No complaints, Sir!"
Comment
-
Well I just tried this and good a lot of sytax errors:
Code:HandleEvent(SendGood)'MG_GiveGoodASound'post{ message(1,'MGGoodMessage'); } MessageBox'MGGoodMessage'{ Text(ID_MG_GOOD_MESSAGE); } MG_GOOD_MESSAGE "Ressurce hat: {ressourceDB(value[0])}, {ressourceDB(value[0]).Sound}, {ressourceDB(value[0]).SpriteID}, {ressourceDB(value[0]).Gold}, {ressourceDB(value[0]).Food}, {ressourceDB(value[0]).Production}, {ressourceDB(value[0]).Probability}"
arguments not implemented
Function calls not implemented
Well I belive this as most of the fields in the Good.txt don't do anything. But this means the RessourceDB function is useless.
-MartinCiv2 military advisor: "No complaints, Sir!"
Comment
-
I think it just means you can't call functions from the string files. You need to assign it to a global in the SLIC, and then pass that to the message box.
ResourceDB() is an int_f function that returns a number given a string, so it can't be used in the string files.Concrete, Abstract, or Squoingy?
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Comment
-
I had a problem at the week end to I put in some slic for my science victory and got an error. I tried to pass a player into a variable and then use that variable to find out the number of cities the player had."Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
The BIG MC making ctp2 a much unsafer place.
Visit the big mc’s website
Comment
Comment