Freyr Posted January 16, 2004 Share Posted January 16, 2004 I'm stuck on how to parse the arena files for a specific values. I need to get the fraglimit value from it and set it to the fraglimit value of the game. I can set the fraglimit from ingame but I can't seem to get the value any help would be appreciated. Link to comment Share on other sites More sharing options...
razorace Posted January 18, 2004 Share Posted January 18, 2004 I beleive the default fraglimit for a map is already listed in the .arena files but it's just not used for anything. Why would you want to anyway? Link to comment Share on other sites More sharing options...
Freyr Posted January 18, 2004 Author Share Posted January 18, 2004 Yes fraglimit is defined in the .arena file but not retrieved in the code. I can't figure out how to retrieve a int not a string from the .arena. Link to comment Share on other sites More sharing options...
Wudan Posted January 18, 2004 Share Posted January 18, 2004 Have it read the string containing the number and do a: number = atoi(string); It will work. Link to comment Share on other sites More sharing options...
Freyr Posted January 19, 2004 Author Share Posted January 19, 2004 Thanks Wudan again for the help. Link to comment Share on other sites More sharing options...
Freyr Posted January 31, 2004 Author Share Posted January 31, 2004 Is it possible to add another string value to the .arena file? Link to comment Share on other sites More sharing options...
razorace Posted February 1, 2004 Share Posted February 1, 2004 I don't see why not. You'll probably get error msgs when you try to run the new format .arena's in basejka thou. Link to comment Share on other sites More sharing options...
Freyr Posted February 2, 2004 Author Share Posted February 2, 2004 I cant seem to get the new value to load in. Is there a limit to how many values can be put in? I thought it just ran a loop through all the values Link to comment Share on other sites More sharing options...
Freyr Posted February 6, 2004 Author Share Posted February 6, 2004 Any ideas? Link to comment Share on other sites More sharing options...
razorace Posted February 7, 2004 Share Posted February 7, 2004 What are you trying now? Link to comment Share on other sites More sharing options...
Freyr Posted February 7, 2004 Author Share Posted February 7, 2004 Well basically I'm trying to put some information for a map into the arena file to be loaded when a command is pressed and displayed on screen. I can display the other values but not my new one. Do you know why? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.