lfnetwork.com mark read register faq members calendar

Thread: Parsing .arena Files
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 01-16-2004, 01:48 PM   #1
VSYoda1
Rookie
 
VSYoda1's Avatar
 
Join Date: Dec 2003
Posts: 18
Post Parsing .arena Files

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.
VSYoda1 is offline   you may: quote & reply,
Old 01-18-2004, 10:21 AM   #2
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,172
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?


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 01-18-2004, 11:36 AM   #3
VSYoda1
Rookie
 
VSYoda1's Avatar
 
Join Date: Dec 2003
Posts: 18
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.
VSYoda1 is offline   you may: quote & reply,
Old 01-18-2004, 12:22 PM   #4
Wudan
Got Balance?
 
Wudan's Avatar
 
Join Date: Oct 2002
Location: Salt Lake, UT
Posts: 1,442
Have it read the string containing the number and do a:
Code:
number = atoi(string);
It will work.


Mt-Wudan.com
I made a silly little program called Dragon, which is an animation tool for the GLA format, used in Jedi Outcast, Jedi Academy and Krakatoa.
Wudan is offline   you may: quote & reply,
Old 01-19-2004, 06:59 PM   #5
VSYoda1
Rookie
 
VSYoda1's Avatar
 
Join Date: Dec 2003
Posts: 18
Thanks Wudan again for the help.
VSYoda1 is offline   you may: quote & reply,
Old 01-30-2004, 10:30 PM   #6
VSYoda1
Rookie
 
VSYoda1's Avatar
 
Join Date: Dec 2003
Posts: 18
Is it possible to add another string value to the .arena file?
VSYoda1 is offline   you may: quote & reply,
Old 02-01-2004, 09:34 AM   #7
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,172
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.


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 02-02-2004, 06:54 PM   #8
VSYoda1
Rookie
 
VSYoda1's Avatar
 
Join Date: Dec 2003
Posts: 18
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
VSYoda1 is offline   you may: quote & reply,
Old 02-06-2004, 09:57 AM   #9
VSYoda1
Rookie
 
VSYoda1's Avatar
 
Join Date: Dec 2003
Posts: 18
Any ideas?
VSYoda1 is offline   you may: quote & reply,
Old 02-06-2004, 08:23 PM   #10
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,172
What are you trying now?


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 02-06-2004, 11:47 PM   #11
VSYoda1
Rookie
 
VSYoda1's Avatar
 
Join Date: Dec 2003
Posts: 18
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?
VSYoda1 is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > Parsing .arena Files

Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:28 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.