.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   Space Empires V Editor 1.1 Released (http://forum.shrapnelgames.com/showthread.php?t=31552)

Hemperor November 2nd, 2006 09:03 PM

Re: Space Empires V Editor 1.1 Released
 
Any chance will see an events editor??

http://forum.shrapnelgames.com/images/smilies/happy.gif

Combat Wombat November 2nd, 2006 09:26 PM

Re: Space Empires V Editor 1.1 Released
 
Quote:

Hemperor said:
Any chance will see an events editor??

http://forum.shrapnelgames.com/images/smilies/happy.gif

Oh man I hope we get one lol, this scripting stuff for events and AI is giving me a headache. I was just starting to figure out the AI for se4 and bam now I have to start all over again.

Devnullicus November 2nd, 2006 09:38 PM

Re: Space Empires V Editor 1.1 Released
 
ok, I've got 1.1.1 released on the website. It fixes all of the things I listed above. Feel free to pick more holes in it so we can get a solid and stable editor. I'm really hoping to get this thing stable and useful by the end of this week because then my vacation is over and it's back to work. Who knows how much time I'll have after that to work on this.

Phoenix-D November 2nd, 2006 09:53 PM

Re: Space Empires V Editor 1.1 Released
 
Components editor: would it be possible to add a "Save anyway" box to the list of errors when saving? Also, the error list pops up twice when you try to save when errors are present.

Weapon Damage Type formulas aren't working properly. The editor can't, for example, handle the stock Plague Bomb damage type forumla.

Weapon Min/Max Damage formula isn't handling some forumlas right. For the Flak cannon, the forumla is:

iif([%Range%] <= 100, (50 + (([%Level%] - 1) * 5)) - ([%Range%] * 0.8), 0)

which is correct. The parser doesn't read it correctly, however, and says "Invalid parameter count. The function iif requires 3 parameter(s)."

The first parameter is 100, the second is (([%Level%] - 1) * 5)) - ([%Range%] * 0.8), the third is 0.

Devnullicus November 2nd, 2006 10:04 PM

Re: Space Empires V Editor 1.1 Released
 
Quote:

Phoenix-D said:
Components editor:
would it be possible to add a "Save anyway" box to the list of errors when saving?


Yes, though I'm a little leery of doing so as I have no idea what will be written at that point and I don't want to ruin the users data files.

Quote:


Also, the error list pops up twice when you try to save when errors are present.


hmm, hadn't noticed that. I'll look into it.

Quote:


Weapon Damage Type formulas aren't working properly. The editor can't, for example, handle the stock Plague Bomb damage type forumla.


I've tested it on the stock data and it didn't have any errors. Are you sure it's barfing on a stock formula? Can you paste the formula here?

Quote:


Weapon Min/Max Damage formula isn't handling some forumlas right. For the Flak cannon, the forumla is:

iif([%Range%] <= 100, (50 + (([%Level%] - 1) * 5)) - ([%Range%] * 0.8), 0)

which is correct. The parser doesn't read it correctly, however, and says "Invalid parameter count. The function iif requires 3 parameter(s)."

The first parameter is 100, the second is (([%Level%] - 1) * 5)) - ([%Range%] * 0.8), the third is 0.

The formula parser needs some work, I think. It mostly works, but sometimes gives strange results. I'm going to be revamping it a bit in Version 1.2 and hopefully I'll fix all the little glitches in it.

Devnullicus November 2nd, 2006 11:03 PM

Re: Space Empires V Editor 1.1 Released
 
You're right - the parser is barfing on some of the stock formulas. I was apparently testing the wrong data file earlier.

I've got the saving part fixed so you can still allow saves and I've fixed the plague bomb formula problem. The min/max damage formulas are a bit tougher. For some reason, the parser is thinking that

(50 + (([%Level%] - 1) * 5)) - ([%Range%] * 0.8)

is two parameters. If I surround the whole thing with parens, it works fine. But this definitely does seem to be an issue with the parser. I'm looking into it more now.

President_Elect_Shang November 2nd, 2006 11:15 PM

Re: Space Empires V Editor 1.1 Released
 
I found a problem with the components editor:

Unknown key 'Weapon Damage Type'

I have created a new form of damage and your program can’t seem to handle anything out of the stock forms.

Devnullicus November 2nd, 2006 11:30 PM

Re: Space Empires V Editor 1.1 Released
 
ok, got all the formula parsing fixed. There was a bug in the actual parser library that didn't like relational operators as parameters to functions.

The remaining errors in the "stock" components.txt are..actual errors. Basically, some of the components refer to effects that don't exist.

For example, Crystalline Torpedo has the lines
<font class="small">Code:</font><hr /><pre>
Weapon Space Display Effect Name := Torpedo 11
Weapon Ground Display Effect Name := Torpedo 11
</pre><hr />

These should be Torp 11, which actually does exist. So, the errors that it reports for the stock data file are actual errors.

Phoenix-D November 2nd, 2006 11:30 PM

Re: Space Empires V Editor 1.1 Released
 
Shang: are you using the 1.08 patch? Because it looks like the editor is seeing an old components.txt line and freaking out (the damage type line was Weapon Damage Type before 1.08, when it changed to Weapon Damage Type Formula).

Devnullicus November 2nd, 2006 11:31 PM

Re: Space Empires V Editor 1.1 Released
 
Quote:

President_Elect_Shang said:
I found a problem with the components editor:

Unknown key 'Weapon Damage Type'

I have created a new form of damage and your program can’t seem to handle anything out of the stock forms.

The program reads the file "DamageTypes.txt" to get a list of valid damage types. Did you add your new damage type to that file?


All times are GMT -4. The time now is 02:00 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.