Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Saving game is a problem

Author
Message
myfrm
17
Years of Service
User Offline
Joined: 12th Jul 2007
Location: India
Posted: 18th Jul 2007 19:56
I am making a game with some stealth and condition checkings.
The first stage is like, a man will say the player to go with him to the office. We have to follow him. At the office, boss says, take your equips then meet me at the front door.

In the game, consider we saved the game after meeting the Boss.
When we load the game, the player is at the same position where we saved, but all other things start from the beginning. The man at my room says to go with him. But I'm not there. And also when we load the HUDs will display once more: "come with me to the office" and Boss:".....meet me at the front door." These HUDs overlapped.

Is it the problem of un-destroying the HUD after fadeout?
But the other men will walk from the start. How can I avoid this?


There is one way: Don't let others to save game..

drakul
Deadly Massacre
17
Years of Service
User Offline
Joined: 1st Jun 2007
Location: Spain
Posted: 21st Jul 2007 12:29
I don't know... quit the save trigger?
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 22nd Jul 2007 03:40
yup, myfrm, that is a problem with going beyond the basics of fpsc -- whatever they might be. The only solution as far as I can tell is just not to allow the player to save the game. That is unfortunate because I have a ten level game where I ended up needing to compile each one separately and making the player enter in a game code for that level that was given at the end of the previous level. Compiling separately made the whole game extremely large and was a waste because of reused items (entities) were compiled in each level. If I compiled all 10 levels then if the player loses he has to start all over from level 1. Not good. That's why I did it this way.

As opposed to Highlander.
myfrm
17
Years of Service
User Offline
Joined: 12th Jul 2007
Location: India
Posted: 22nd Jul 2007 19:45
After all, I got a small idea.

Don't allow player to save the game. But automatically save the game at the starting of each levels, by placing playerstart marker and a triggerzone at the same place. The script for the triggerzone is to autosave the game.The triggerzone script must not to be looped,so only one save takesplace.
This works for each levels.

drakul
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 22nd Jul 2007 22:25
Hey, if that works then one can link all the levels together. Better than my solution. Will look into it since I haven't released the game yet. myfrm, I assume you are already using this. Is the player able to load the level he needs to replay?. Haven't looked at the "action" verb that will save the game. Is there a way to name the saved game? I will eventually find out on my own but just asking.

As opposed to Highlander.
myfrm
17
Years of Service
User Offline
Joined: 12th Jul 2007
Location: India
Posted: 23rd Jul 2007 19:47
Actually No. You can't save the game to a specific slot.
It will be saved to the first slot. I don't know if it can be changed or renamed.
This is my script for triggerzone





drakul
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 24th Jul 2007 04:37
Hmmm? "quicksavegame" Seems to be an undocumented action. Super. Hopefully, they will keep it in. There is a "savegame" action but I was having some problems with that for some reason. "Savegame" would allow the player to choose which slot to save the game. I also forgot that FPSC does not allow names for the saved game. They use an internal generated name for the slot the player selects. I'm in the process of testing out the quicksavegame over several levels.

My current game will probably remain the same as it has already been tested by several young people (in an educational environment) and they like the fact that they can access each level separately Gives them a chance to easily replay it. There is a level code that has to be entered, of course that is provided in the previous level. Using the quickgamesave method wouldn't really allow for that, however, I can see this being very useful for other games. Of course, you have already have found it as a useful work around with one of the failings of FPSC (not that I don't like FPSC mind you .

BTW, how did you come across that command -- "quicksavegame?"

As opposed to Highlander.
myfrm
17
Years of Service
User Offline
Joined: 12th Jul 2007
Location: India
Posted: 24th Jul 2007 06:03
No no no. Don't credit me.
Actually this script is from the Nicky's hints and tips.
You can download that and it will be very useful for you.

drakul

Login to post a reply

Server time is: 2024-11-23 20:53:52
Your offset time is: 2024-11-23 20:53:52