[RMXP] SCRIPT HELP
Posts
Pages:
1
I keep getting this message when I test my game (LegendsofDragons DEMO).
This is what it said:
Script 'Game_Map' line 81: NameError occurred
uninitialized constant Game_Map:: Game_CommonEvent.
I hope this is enough info if anyone can solve this problem cause I've never made a game before this.
This is what it said:
Script 'Game_Map' line 81: NameError occurred
uninitialized constant Game_Map:: Game_CommonEvent.
I hope this is enough info if anyone can solve this problem cause I've never made a game before this.
So, this pops up when you're doing a test-play? What about running the executable? How is this Common Event called, exactly? What does it contain?
Anyway, I get the feeling some script you inserted is messing with the processing, somehow. Mostly because the default Game_CommonEvent class that XP comes with has 71 lines, and this message references line 81!
Anyway, I get the feeling some script you inserted is messing with the processing, somehow. Mostly because the default Game_CommonEvent class that XP comes with has 71 lines, and this message references line 81!
I never heard of an executable so I will look at that so how its starts is you are outside your tent before anything else happens you have to go into the tent. from there your dad sets you on an adventure so then you go across the bridge turn right and keep walking so you get to where a dragon is for the common event that is in the event I put there. btw I think I might've changed the script name then I tried to change it back to Game_Maps but when I play the game it stays as Game_CommonEvent. sorry for the confusion.
Edit: this happens after I click 'new game' incase anyone needed to know when it happens.
Edit: this happens after I click 'new game' incase anyone needed to know when it happens.
Let's leave off running the executable for a moment. I kinda doubt there would be much difference anyway. Saying that, let me get this straight. Players hit "New Game", and they start in a tent. PC's dad sends PC somewhere, which involves crossing a bridge. After the bridge is a dragon that calls the common event in question which triggers this error message.
I may be simplifying things a bit here, but, am I getting this right so far?
As for the error, let's take a reference from lines 78 through 82 of tthe default Game_Map class. This reads...
...so, apparently, it's throwing an error on...
...that line, specifically. Which leads me to think that that the Game_CommonEvent class does not exist (which makes no sense, though possible), or the initialization function has been over-written.
I may be simplifying things a bit here, but, am I getting this right so far?
As for the error, let's take a reference from lines 78 through 82 of tthe default Game_Map class. This reads...
# Set common event data @common_events = {} for i in 1...$data_common_events.size @common_events[i] = Game_CommonEvent.new(i) end
...so, apparently, it's throwing an error on...
@common_events[i] = Game_CommonEvent.new(i)
...that line, specifically. Which leads me to think that that the Game_CommonEvent class does not exist (which makes no sense, though possible), or the initialization function has been over-written.
sorry for the late reply (Christmas makes you busy).
so what you said there
*Which leads me to think that that the Game_CommonEvent class does not exist (which makes no sense, though possible), or the initialization function has been over-written
-----------------------------------
I mostly think its the underlined sentence you made witch come to mind for me that it is over-written BUT there is only 3 maps and the event is bigger (code wise) then the maps ive made since there is bearly and detail at the start and where the event occurred. I am not 100 percent sure but I think it is the underlined. If you could can you post how to fix that problem cause im not sure how to fix that since I never encountered this before i started making this "demo" of this game.
so what you said there
*Which leads me to think that that the Game_CommonEvent class does not exist (which makes no sense, though possible), or the initialization function has been over-written
-----------------------------------
I mostly think its the underlined sentence you made witch come to mind for me that it is over-written BUT there is only 3 maps and the event is bigger (code wise) then the maps ive made since there is bearly and detail at the start and where the event occurred. I am not 100 percent sure but I think it is the underlined. If you could can you post how to fix that problem cause im not sure how to fix that since I never encountered this before i started making this "demo" of this game.
Pages:
1















