Page 1 of 1

Problems with loading cutsom maps

Posted: June 17th, 2009, 10:54 am
by CollegeforKids
When I save maps a few things happen:


Particle text turns to "nothing "

NPC's lose their ability to talk (it rewrites my config file and take out my talking chars)

SOMETIMES creatures get deleted...but that's pretty rare and I don't mind

Re: Problems with loading cutsom maps

Posted: June 17th, 2009, 11:24 am
by Mike
Here is an example of my save the princess cfg code:

Code: Select all

"munchsound" = [10]
"on_start" = [
	movespeed 300
	music traveling_minstrels nextsong
	newgui Princess-Robochimp [
		guitext "Thank you for saving me!" chat
		guitext "You're my hero!" chat
	]
	munchsound = (registersound free/chomp 255)
]
"level_trigger_1" = [showgui Princess-Robochimp]
So besides stuff we are defining (what level trigger 1 - and the munchsound) the rest needs to be in the on_start as I have it written. For JUST npc chat it would look like this:

Code: Select all

"level_trigger_1" = [showgui Princess-Robochimp]
"on_start" = [
	newgui Princess-Robochimp [
		guitext "Thank you for saving me!" chat
		guitext "You're my hero!" chat
	]
]
(or could put the level_trigger 1 after it). I know it is kind of confusing, in our new version you don't have to do the on_start. Take care.
-mike

Re: Problems with loading cutsom maps

Posted: June 17th, 2009, 11:55 am
by CollegeforKids
for some reason adding that makes it so they won't talk... strange (did you get my email?)

Re: Problems with loading cutsom maps

Posted: June 17th, 2009, 12:01 pm
by Mike
Make sure there are no typos or just paste what I have. I just tested the code in game and it is working for me. Make sure also the map is in single player, which is press ` for the console (button above tab) and then enter /sp savetheprincess

Just saw your e-mail, wrote back :) Take care.
-mike

Re: Problems with loading cutsom maps

Posted: June 17th, 2009, 9:27 pm
by CollegeforKids
I figured it out - if you want two NPC's, you don't need to do two "on starts". Both NPC code can be contained within that one. Thanks! The kids will love this tomorrow. Just gotta teach myself a few more things today (picking apart the RPG...hoping to learn quests, attacking creatures, etc. Maybe I'll learn, maybe I won't.)

Re: Problems with loading cutsom maps

Posted: June 17th, 2009, 10:48 pm
by Mike
For the rpg it is all in data/game_rpg.cfg So much POWA :D Take care!
-mike