Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
I am having some difficulty with a very annoying crash lateley. Basically what happens is, once an NPC reaches his destination, an event is run. It looks like this: (Event1) Defreeze Player Change Player Map Icon Map Position (53,98) Teleport to Vale Surroundings 8 NPC Control: Add DwarfFollow (53,100) Set gb_Dwarf? = 1
When teleported to the location, it has these startup items: (Event2) for Location: Vale Surroundings 8 Play Music Conditional: gb_Dwarf? = 1 If True do: NewX = PlayerX NewY = PlayerY NewX = NewX + 1 NewY = NewY - 1 NPC Control: Add DwarfFollow (NewX,NewY) Else End Event
But all that happens is the game crashes as soon as you teleport to the location. You do stay in the map for about a second before it crashes. The music does play, and the NPC does appear, but after that, boom.
At first I thought it was because I had Event1 run in both the NPC's reach target event and target proximity event. I removed the reach target event. Still crashed.
Then I thought it was because there was a fade action after the teleport (I had fade actions back then). I took out the fade back, and forgot to take out the fade to. This dod NOT crash, however, I couldn't see anything of course. I went back and removed the fade to black event. Now it crashes again.
I then thought it may be due to the fact that I had placed a cut-scene stamp (Moving the camera) in the previous map and forgot to remove it. Still crashed.
I thoroghly checked over these events, nothing seems wrong. I checked both locations, nothing seems wrong. It still crashes.
I am about to go insane. Anyone have any ideas?
------------------ "Stiney! Get me a danish!"
Add Dwarf follow? Humm. I think that the engine JUST likes to teleport and THAT's IT!! Can you have your Player teleport, then once he's in the other map, to do something before you run an NPC control event?
Also, why defreeze the Player?
Check the access tiles in the Vale map so that the Player isn't landing on one.
Hope this helps, but it probably won't. In my experience it takes a while and sometimes hours to figure it out. I find that while it's okay to have an event and it looks normal and in every other circumstance it IS normal, the engine doesn't like it. Number one rule: don't tick off the engine!!!
Good luck. Try to not go COMPLETELY insane! Know that we care!
------------------ -- Debra Danillitphil Productions (url="http://"http://www.danillitphil.com/graphics/index.html")www.danillitphil.com(/url)
Quote
Originally posted by OgreBob: **I am having some difficulty with a very annoying crash lateley. Basically what happens is, once an NPC reaches his destination, an event is run. It looks like this: (Event1) Defreeze Player Change Player Map Icon Map Position (53,98) Teleport to Vale Surroundings 8 NPC Control: Add DwarfFollow (53,100) Set gb_Dwarf? = 1
**
I would try deleteing the game preferences. (not the coldstone preferences)
------------------ Thanks, GrahamVH graham@warcraftcentral.com Coldstone Developer (url="http://"http://www.warcraftcentral.net/legends/main.html")http://www.warcraftc...gends/main.html(/url)
Because I have a cutscene where the player is represented by an NPC, and the player map icon is white. I have to freeze him so that he doesn't move around during the cutscene.
Ahhh, this was the problem. Thanks Debra. In the future I shall try not to push the limits of the almighty engine
Originally posted by OgreBob: **Ahhh, this was the problem. **
Really? COOL!!! You're welcome! Yep, the almighty engine is fickle and has no mercy!!
Ugh! I spoke too soon.
It didn't crash ONCE. Now it crashes again. Any more ideas? I'll try deleting the preferences.
Thanks for trying!
Oh rats! :frown:
It'll probably take a while, but you'll find the culprit. I hope it doesn't get you down or make you too insane! I'm sure others on this board will have helpful ideas. Good luck!
Ok well I just realized that since I haven't compiled my game yet, it doesn' HAVE a preferences folder? Any more ideas before I bust my head on a wall?
Originally posted by OgreBob: **Ok well I just realized that since I haven't compiled my game yet, it doesn' HAVE a preferences folder? Any more ideas before I bust my head on a wall?
Okay OgreBob, lets try this step - by - step.
Assuming that you have a NPC called invisable -
1st. Try: on the original map, to replace the invisable player icon with the visable hero. If that works, it means that you can have your NPC (the hero) and The invisible icon (the new hero) in the same place and switch them back and forth safely.
2nd Move just the player to the second map (as a hero, not invisable). If that works
3rd Go back to the original map and delete the dwarf and make him follow you. If that works
4th Add the music ect to the file. (last - add the fades to hide the actions)
If any of this fails, then that is your problem. I hope I covered everything.
------------------ -Albadar- - - - - - - - - - - Just trying...