Help with main menu [Solved]

Started by rmonic79, Sun 23/11/2014 12:13:03

Previous topic - Next topic

rmonic79

hi guys i have a question about main menu, the one that have New game, Load game, Continue, credits.
i' ve tried to reset room with new game one by one is it correct? or there's a global command that reset all room? and i have a little problem, when i return to main menu and start a new game resetting intro (i made a mistake enabling savestate in the the intro room and i can't change the option, i have to make a new room or is there a way to change it?) the main charachter is scaling about 70% and i don't understand why :( some advice?
Thanks

Vincent

Ciao rmonic79,

Quote from: rmonic79 on Sun 23/11/2014 12:13:03
some advice?

I regret in advance for failing to respond to your requests.
But, if you don't mind, can you show off about what do you have in your room's script ?!
Because i didn't fully understand this sentence, apart from the entire post,

Quote from: rmonic79 on Sun 23/11/2014 12:13:03
when i return to main menu and start a new game resetting intro (i made a mistake enabling savestate in the the intro room and i can't change the option, i have to make a new room or is there a way to change it?)

rmonic79

Quote from: Vincent on Sun 23/11/2014 13:34:43
Ciao rmonic79,

Quote from: rmonic79 on Sun 23/11/2014 12:13:03
some advice?

I regret in advance for failing to respond to your requests.
But, if you don't mind, can you show off about what do you have in your room's script ?!
Because i didn't fully understand this sentence, apart from the entire post,

Quote from: rmonic79 on Sun 23/11/2014 12:13:03
when i return to main menu and start a new game resetting intro (i made a mistake enabling savestate in the the intro room and i can't change the option, i have to make a new room or is there a way to change it?)
sorry the question was a little bit confused :) i made some times ago, two room with intro of the game and i forgot to check "don't save state this room". Now, in the room option, i can't change the option state saving to false and i don't know if it's possible to disable this feature or i must make a new room with save state disabled and copy scripts and other stuff into it. i think it's possible to change room number to 300 and above but i didn't try it before

Cassiebsg

Quote
i think it's possible to change room number to 300 and above but i didn't try it before


yup, just change the room number. (nod)
There are those who believe that life here began out there...

Vincent

- Not so sure, but -

It's not possible to change "Do not save state in this room", after you confirm it.

You must make a new room with save state disabled and copy scripts and other stuff into it,
But i guess it depend of your intentions.


Quote from: rmonic79 on Sun 23/11/2014 15:29:22
i think it's possible to change room number to 300

Yes, that is possible :)


I guess this clarification from ags notes it's important too -
Room numbers below 300 save the room state; numbers above 300 do not

rmonic79

works fine, thanks guys, i solved the other scaling problem setting manual scaling on, then scalong charachter to 100 on click on new game , then on first room i set manual scaling off and the problem is gone. it seems that the charachter scaling of first room doesn't go off on return on main menu.

AprilSkies

I'm not sure I catch exactly the problem of resetting rooms... but why don't you use the RestartGame() command (after of course setting the "restart point" in the desired room, for example the intro room)?

www.apemarina.altervista.org

rmonic79

Quote from: AprilSkies on Sun 23/11/2014 16:34:20
I'm not sure I catch exactly the problem of resetting rooms... but why don't you use the RestartGame() command (after of course setting the "restart point" in the desired room, for example the intro room)?
thanks, i'll give it a try :)

Vincent

Quote from: rmonic79 on Sun 23/11/2014 12:13:03
and i have a little problem, when i return to main menu and start a new game resetting intro
the main charachter is scaling about 70% and i don't understand why :(

I do not know if this has anything to do with this case.

ManualScaling property (character)

Gets/sets whether the character's scaling level is determined by the walkable area that he is walking on, or whether it is set manually by the script.

This is equivalent to the "Ignore room area scaling" checkbox in the editor.

Monsieur OUXX

AprilSkies is right : you never ever need to reset all your rooms manually.
You just need two things:
1. Define the place in the game that you consider to be "the beginning" (most of the time, it's the main menu screen) : In that room script, add instruction "SetRestartPoint();".
2. Whenever you want to start a new game, call "RestartGame();" It will not only bring you back to the "restart point", but it will also reset all memory as it was when you called "SetRestartPoint", effectively starting a new game.

First, try that, and then we'll see if you still need to fix your scaling issue.
 

Vincent

#10
Monsieur OUXX, nothing to contextualize.

Quote from: Monsieur OUXX on Sun 23/11/2014 18:53:38
AprilSkies is right : you never ever need to reset all your rooms manually.
You just need two things:
1. Define the place in the game that you consider to be "the beginning" (most of the time, it's the main menu screen) : In that room script, add instruction "SetRestartPoint();".
2. Whenever you want to start a new game, call "RestartGame();" It will not only bring you back to the "restart point", but it will also reset all memory as it was when you called "SetRestartPoint", effectively starting a new game.


It's so extremely important to "Re-type in" what AprilSkies has already saying ?
The manual is free. And everybody can have the manual.


but especially,

Quote from: Monsieur OUXX on Sun 23/11/2014 18:53:38
First, try that, and then we'll see if you still need to fix your scaling issue.

Quote from: rmonic79 on Sun 23/11/2014 16:11:03
works fine, thanks guys, i solved the other scaling problem setting manual scaling on, and the problem is gone.

Monsieur OUXX

#11
Hey I didn't see the problem was gone.

Oh, and to answer your questions: it never hurts to repeat things that have already been said, when it's rephrasing the solution (and describing the issue's root cause in a more general manner) thus making it easier to understand and remember.

EDIT: actually, it doesn't seem to me that the problem was gone, therefore, I don't think my post was unnecessary. The best evidence are the several posts by both you and AprilSkies coming after rmonic79 said "and the problem is gone".
The problem is not gone, since there is an issue with resetting the scaling, and rmonic79 fixes it by working around it. I'm not sure I fully understand his issue but my AGS scripter instinct tells me his workaround is unreliable and error-prone.
The reason why I insisted on Aprilskies' post is because I think that would solve the issue permanently, and more elegantly. Also I "re-typed" it because I wanted to help rmonic79, and make it more clear how one sets the restart point.

Long things short: I find your last post very strange and unnecessary conflictual, Vincent, to say the least.
 

rmonic79

thanks guy problem solved with setRestartPoint() :)

selmiak

this post is absolutely unnecessary!

rmonic79

Quote from: selmiak on Tue 25/11/2014 12:11:39
this post is absolutely unnecessary!
maybe it is, but sometimes for a noob like me happens to miss something obvious, mostly when the first approach to the problem is wrong. After all we are on beginner's technical questions

Gurok

Awww rmonic79, I don't think selmiak meant anything by that. He was just being jovial and referencing what Monsieur OUXX said about his own post being unnecessary. You're always welcome to ask questions in the beginner's technical questions forum, and you're right, this kind of question is exactly what it's for.
[img]http://7d4iqnx.gif;rWRLUuw.gi

Vincent

Said from Vincent sound like a joke.
Because I still keep on to do the same mistake.
But I try ("anytime") to keep in mind these words.


<<(([[|| * READ FIRST *BEFORE* POSTING!!! (updated 14 August 2012) * ||]]))>>

Also keep in mind, Chris Jones (aka CJ aka Pumaman) PAYS for the bandwidth of these forums out of his very own pockets.


rmonic79

Quote from: Gurok on Tue 25/11/2014 13:24:49
Awww rmonic79, I don't think selmiak meant anything by that. He was just being jovial and referencing what Monsieur OUXX said about his own post being unnecessary. You're always welcome to ask questions in the beginner's technical questions forum, and you're right, this kind of question is exactly what it's for.
so, sorry for misunderstanding but the post was under mine with no quote :)

selmiak

no offense intented, it's exactly as Gurok said, I just wanted to post an unnecessary post because the tread tended to go offtopic already with discussion about unnecessary posts after everything was solved already. Maybe I even wanted to derail things with an unnecessary post, so I succeeded in that too (laugh)

SMF spam blocked by CleanTalk