.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old October 31st, 2006, 02:52 PM

Elsemeravin Elsemeravin is offline
Corporal
 
Join Date: Nov 2001
Posts: 148
Thanks: 0
Thanked 0 Times in 0 Posts
Elsemeravin is on a distinguished road
Default Re: Space Empires V Editor 1.0 released

I just realised the '+' disappeared in the post but does exist in the file.
I will write a '+' juste after the ':' at the end of this line to check: : + 1

I finally tried deleting the Medical Lab part.
It will then go further up to the Ultra-recycler facility and then the same error again, I guess in the following:

Name := Climate Control Facility
Description := Atmospheric conditioning and manipulation improve the conditions of a planet.
Facility Group := Planet Modification
XFile Class Name := Climate Control
Picture Number := 17
Maximum Level := 100
Tonnage Space Taken Formula := 1000
Tonnage Structure Formula := 1000 + (([%Level%] - 1) * 20)
Cost Minerals Formula := 8000 + (([%Level%] - 1) * 80)
Cost Organics Formula := 8000 + (([%Level%] - 1) * 80)
Cost Radioactives Formula := 8000 + (([%Level%] - 1) * 80)
Number Of Requirements := 1
Requirements Evaluation Availability := AND
Requirements Evaluation Allows Placement := TRUE
Requirements Evaluation Allows Usage := TRUE
Requirement 1 Description := Empire must have at least tech level 1 in Planet Utilization.
Requirement 1 Formula := Get_Empire_Tech_Level("Planet Utilization") >= (1 + ([%Level%] - 1))
Number of Abilities := 1
Ability 1 Type := Planet Conditions Change
Ability 1 Description := Improves the conditions of the planet by [%Amount1%]% each year.
Ability 1 Scope := Space Object
Ability 1 Range Formula := 0
Ability 1 Amount 1 Formula := 1 + (([%Level%] - 1) * 0.1)
Ability 1 Amount 2 Formula := 0



I think I got it. My computer has is expecting ',' as decimal separator instead of '.' and then when your program meets a decimal number in formula it will not process correctly.

But I'm not sure if you could force the decimal separator in your code to be '.' instead of windows default one ?
Reply With Quote
  #2  
Old October 31st, 2006, 03:25 PM

Devnullicus Devnullicus is offline
Sergeant
 
Join Date: Feb 2001
Location: Belmont, CA USA
Posts: 285
Thanks: 0
Thanked 0 Times in 0 Posts
Devnullicus is on a distinguished road
Default Re: Space Empires V Editor 1.0 released

Quote:
Elsemeravin said:

I think I got it. My computer has is expecting ',' as decimal separator instead of '.' and then when your program meets a decimal number in formula it will not process correctly.

But I'm not sure if you could force the decimal separator in your code to be '.' instead of windows default one ?
Oh! Heh, fancy programming bites me in the ***, I see. I was trying to be "smart" and have the formula parser recognize regional settings. Obviously, I need to rethink that and turn that off

Thanks for finding this!
__________________
How's my Programming? Call 1-800-DEV-NULL
Get the Space Empires V Editor and DevnullMod at http://www.devnullsoftware.com/se5
Reply With Quote
  #3  
Old October 31st, 2006, 03:55 PM

Elsemeravin Elsemeravin is offline
Corporal
 
Join Date: Nov 2001
Posts: 148
Thanks: 0
Thanked 0 Times in 0 Posts
Elsemeravin is on a distinguished road
Default Re: Space Empires V Editor 1.0 released

Quote:
Devnullicus said:
Oh! Heh, fancy programming bites me in the ***, I see. I was trying to be "smart" and have the formula parser recognize regional settings. Obviously, I need to rethink that and turn that off


Don't worry too much, I changed the regional setting to use '.' I should have done that long time ago already, so now it's done for good.

I think you should focus on component design first (and then tech areas ! with a nice tree representation)
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 10:30 PM.


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