Start New Game

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Start New Game

Postby Giuseppe » Sun Oct 11, 2009 11:57 am

Hi
Sorry my english again.
I have a problem.

I personalized menu with: New Game - Load and Exit.
I play and I want restart the game, exit and i return in personalized menu and click a New Game. The project restart but when I'm at the point where I stopped, don't restart very well because the hotspot previously clicked
are disabled. Seems that the game is paused and not stopped.
There'is a solution?
if you do not understand well, put sample images.

Thanks
Giuseppe
Frequent Poster
 
Posts: 147
Joined: Wed Mar 12, 2008 12:01 pm

Postby Imari » Sun Oct 11, 2009 4:37 pm

I'm guessing that you've used this tutorial to create your Main Menu page? --
http://www.adventuremaker.com/help/startup_menu.htm

I'm also guessing that you're using scripting to write to an INI file for some aspects of your game? If so, when your player clicks New Game, the INI file is still there. I think that you will need to reset the information in your INI file(s?) to some null value when the player clicks New Game. This will be different, of course, for the information in each INI file, but the basic structure is -

Code: Select all
Action.WriteINI FILENAME, SECTION, KEY, VALUE


You could then use Action.GoToFrame to take you to the first frame of the game.

If you can give more information, perhaps someone better at coding than I can give you better advice.
User avatar
Imari
VIP
 
Posts: 872
Joined: Fri Jun 20, 2003 4:49 pm
Location: Virginia, USA

Postby Giuseppe » Sun Oct 11, 2009 7:12 pm

Imari wrote:I'm guessing that you've used this tutorial to create your Main Menu page? --
http://www.adventuremaker.com/help/startup_menu.htm

I'm also guessing that you're using scripting to write to an INI file for some aspects of your game? If so, when your player clicks New Game, the INI file is still there. I think that you will need to reset the information in your INI file(s?) to some null value when the player clicks New Game. This will be different, of course, for the information in each INI file, but the basic structure is -

Code: Select all
Action.WriteINI FILENAME, SECTION, KEY, VALUE


You could then use Action.GoToFrame to take you to the first frame of the game.

If you can give more information, perhaps someone better at coding than I can give you better advice.


Yes here http://www.adventuremaker.com/help/startup_menu.htm
Where is INI file?
Attachments
Immagine.JPG
Immagine.JPG (120.77 KiB) Viewed 2812 times
Giuseppe
Frequent Poster
 
Posts: 147
Joined: Wed Mar 12, 2008 12:01 pm

Postby reneuend » Sun Oct 11, 2009 9:01 pm

By Default, the INI file is located in the "external" folder under your project where AdventureMaker was installled.

...\Projects\<projectname>\External\
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2762
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby Giuseppe » Sun Oct 11, 2009 9:15 pm

reneuend wrote:By Default, the INI file is located in the "external" folder under your project where AdventureMaker was installled.

...\Projects\<projectname>\External\


There in not there!
Giuseppe
Frequent Poster
 
Posts: 147
Joined: Wed Mar 12, 2008 12:01 pm

Postby Imari » Mon Oct 12, 2009 12:42 am

My apologies, Giuseppe, if what I said was confusing.

Writing to an INI file is a technique used in some of the "custom save-load" techniques that have been discussed on the forums. Writing to an INI file IS NOT a part of that tutorial.

Since you were having trouble, I thought that perhaps you were using an INI file somewhere in your game. If you are not using scripting to write to an INI file, then I do not know why you are having this problem.
User avatar
Imari
VIP
 
Posts: 872
Joined: Fri Jun 20, 2003 4:49 pm
Location: Virginia, USA

Postby juhuwoorps » Mon Oct 12, 2009 1:20 am

I think you have to reset the variables:
ResetRemovedHotspots

Scroll down until you see it!
juhuwoorps
Code Master
 
Posts: 622
Joined: Tue Jul 08, 2008 3:13 pm


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests