Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
APP & #define

 
Post new topic   Reply to topic Printable version
 View previous topic  f1 menu Post :: Post Deadlock?  View next topic  
Author Message
JoWie
Server Help Squatter


Gender:Gender:Male
Joined: Feb 25 2004
Posts: 215
Offline

PostPosted: Thu Mar 27, 2008 8:16 am    Post subject: APP & #define Reply to topic Reply with quote

I can not get #define to work in config files.

Is this just broken in APP, or am I doing something wrong?


For example if I do the following in arena.conf:
Code: Show/Hide

#define TEST 5
Warbird:RocketMax = $TEST


The resulting RocketMax is 0


If I browse through some source files, I see that the setting Misc:SeeEnergy for example, is parsed as a string in game.c, then converts $SEE_NONE, $SEE_ALL, etc manually to an integer. Without the use of APP.
Back to top
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Thu Mar 27, 2008 12:31 pm    Post subject: Reply to topic Reply with quote

drop the $
_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
JoWie
Server Help Squatter


Gender:Gender:Male
Joined: Feb 25 2004
Posts: 215
Offline

PostPosted: Thu Mar 27, 2008 1:41 pm    Post subject: Reply to topic Reply with quote

Didn't work, I have tried about every possible combination now.

However, the following works:

Code: Show/Hide

#define A 5

Shark:RocketMax = 0
#ifdef A
Shark:RocketMax = 200
#else
Shark:RocketMax = 100
#endif



Which results in Shark:RocketMax = 200
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Thu Mar 27, 2008 7:47 pm    Post subject: Reply to topic Reply with quote

you were setting it for the warbird before... are you testing for the shark?
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Fri Mar 28, 2008 1:57 am    Post subject: Reply to topic Reply with quote

I took out that feature because it was only used for the enum stuff, and I decided that handling the enums in code instead of macros was better. http://asss.yi.org/bugs/view.php?id=92
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 64 page(s) served in previous 5 minutes.

phpBB Created this page in 0.484352 seconds : 30 queries executed (95.1%): GZIP compression disabled