Page 2 of 2
Posted: Sun Jul 29, 2007 6:09 pm
by Maveritchell
I think part of my problem was that I wasn't activating the regions in the .lua. By doing that, I was at least able to get this error to show up in the BF2log (no doubt this would repeat for racer2laps, racer3... etc.):
Code: Select all
Message Severity: 3
.\Source\LuaHelper.cpp(312)
CallProc failed: (none):0: attempt to perform arithmetic on global `racer1laps' (a nil value)
stack traceback:
(none): in function <(none):951>
Not sure what that means; I even tried setting up a region to define them on the start of the level (even though you said that wasn't necessary), with the same results.
Posted: Sun Jul 29, 2007 7:04 pm
by Ace_Azzameen_5
racer1laps hasn't been given a number value yet when you try and add to it. Thats my best guess.
Posted: Sun Jul 29, 2007 7:15 pm
by Maveritchell
Yeah, that's what I figured. But like I said, I even tried creating a region that set a value of zero for all my undefined variables, and I still got the same error.
Posted: Sun Jul 29, 2007 7:54 pm
by Ace_Azzameen_5
Wait? Did you try the setting to zero without the region?
You should do what I said above and make sure all the regions are triggering.
Edit: I've made way to many posts in this thread-xfire: gtaceazzameen5
Posted: Sun Jul 29, 2007 10:20 pm
by [RDH]Zerted
Please excuse my lack of help, I am in the middle of moving (I don't even have a bed to sleep on

). I should have my computer back and running around the start of next week, but I will be on dial-up till Sept. I've skimmed the lastest posts, but don't have the time to write up anything else at the moment. I don't know how much computer time I will have during the next 6 days.
Posted: Mon Jul 30, 2007 9:40 pm
by Maveritchell
It's working, IT'S WORKING!!
Yep, thanks to a lot of help from Ace_Azzameen_5, I got race mode working. It turns out that "player" is a numerical value, not a string value. I still need to do some multiplayer checks and work on some more AI issues in the map, but race mode is now a definite "go."