<OnCreate> event: Line 1: Mismatched open parenthesis

Freeform discussion about anything related to modding Transcendence.
Post Reply
Viymese
Anarchist
Anarchist
Posts: 15
Joined: Sun Nov 04, 2012 2:03 am

This is in the Debug: 12/05/2012 23:57:23 Extensions\ZeroShip.XML: (d127a008): <OnCreate> event: Line 1: Mismatched open parenthesis

This is the ship that holds the Event : http://paste.neurohack.com/view/YNUdv/


My Problem is that I can't figure out what the problem is so I am at a loss as to what I need to do to fix it!
User avatar
Atarlost
Fleet Admiral
Fleet Admiral
Posts: 2391
Joined: Tue Aug 26, 2008 12:02 am

Bad entity substitution. Replace "itEnhanceShieldsRom;" with "&itEnhanceShieldsRom;". The lack of ampersand prevents the entities from being interpreted as entities and the trailing semicolons that should close entities instead do who knows what, causing the rest of the script to fail to parse so it only gets the first opening parenthesis and produces a mismatched parenthesis error.
Literally is the new Figuratively
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

if you want to use a itemtype name like itEnhanceShieldsROM (which is automatically converted by Transcendence into a UNID number) you have to put & before and ; after like this

Code: Select all

&itEnhanceShieldsROM;
in your case, objEnumItems requires just a "temporary variable" used only for the enumeration and that can be used in the expression you want to run during the enumeration.
By looking at your code, It looks like that you are trying to make things on your cargo "unknown" (itmSetKnown something Nil)
If you are just trying to see an effect on your cargo, try this:

Code: Select all

(objEnumItems gSource "*U" tempItem (itmSetKnown tempItem))
This will make all the uninstalled items (all the stuff in your cargo hold) KNOWN.
Viymese
Anarchist
Anarchist
Posts: 15
Joined: Sun Nov 04, 2012 2:03 am

I am trying to make the starting Items in my Cargo hold Unknown, the reason why is that I am putting together a ship that will give a very small chance of getting Degenerating nanos, but everytime I test it I can see what it is and thinking about how much fun, or how much panic, would be instilled if a player used a degenerating Nanos barrel on their hull in the beginning of the game I decided I needed to hide the Identities of the Barrels and/or ROMs found in your Cargo Hold as soon as you spawn!

Now I just need to learn how to create a list with in the brackets that isn't a football field long...

Edit: The ship actually has quite a few chances for other damaging Barrels such as radioactive waste, or an acid of somesort and just yeah all sorts of fun surprises... I won't tell though!
User avatar
Atarlost
Fleet Admiral
Fleet Admiral
Posts: 2391
Joined: Tue Aug 26, 2008 12:02 am

Viymese wrote:I am trying to make the starting Items in my Cargo hold Unknown, the reason why is that I am putting together a ship that will give a very small chance of getting Degenerating nanos, but everytime I test it I can see what it is and thinking about how much fun, or how much panic, would be instilled if a player used a degenerating Nanos barrel on their hull in the beginning of the game I decided I needed to hide the Identities of the Barrels and/or ROMs found in your Cargo Hold as soon as you spawn!
The only practical effect of this is going to be to make players waste one barrel testing and then restart the game if it's bad. Bad barrels in Eridani are game over. Radiation is going to kill you and degen nanos are going to turn you into a one hitpoint wonder from one direction and get you killed. Meteorsteel is going to strip the shield which is critical to not dieing in Eridani. People are just going to start scum or try to play out a horribly gimped opening and then fail and start over, which doesn't differ much in practice even if it's different philosophically.
Literally is the new Figuratively
Viymese
Anarchist
Anarchist
Posts: 15
Joined: Sun Nov 04, 2012 2:03 am

Huh, well when you put it like that my efforts seem very very silly... oh well, it was a good learning experience none the less! Thank you Artalost and DigDug for your help.
FourFire
Militia Captain
Militia Captain
Posts: 567
Joined: Sun Aug 12, 2012 5:56 pm

It would be more effectual if you had the barrels spawn when the player enters the St. Kathrines star system, since the vast majority of playthroughs never make it that far, so the effort required to get there could be sufficient to cause the player the type of angst you describe (sunk costs fallacy)
(func(Admin Response)= true){
if(admin func(amiable) = true)
Create func(Helpful Posts)
else func(Keep Calm and Post derisive topics)}
Viymese
Anarchist
Anarchist
Posts: 15
Joined: Sun Nov 04, 2012 2:03 am

Oh... well I guess that would be cause enough for that... oh well I'll just leave the idea in the idea folder for now and move on to different ideas.
Thanks Four!
Post Reply