IN game saving
- BLACK_PHOENIX
- Posts: 126
- Joined: Wed Sep 27, 2006 6:42 am
IN game saving
can some one tell me how to script a npc conversation asking me whether i want to save.
eg,
i come to a npc or actor(computer) and i press a key to activate a conversation. the npc asks me to save.
i have 2 options; cancel and save
if i click on cancel it quits the conversation and resumes the game
if i click save then i choose a slot to save in a mini menu and save. then i click ok and it resumes the game.
i also want to know how to make an entity a save. so when i go over it or i finish the level it asks me to save.
eg,
i come to a npc or actor(computer) and i press a key to activate a conversation. the npc asks me to save.
i have 2 options; cancel and save
if i click on cancel it quits the conversation and resumes the game
if i click save then i choose a slot to save in a mini menu and save. then i click ok and it resumes the game.
i also want to know how to make an entity a save. so when i go over it or i finish the level it asks me to save.
The only saving rf can do in game via scripts is saving attributes to a file. But I don't think it has a feature to load attributes from a file
Jonas
Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren't sure which way to do something, do it both ways and see which works better. - John Carmack
Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren't sure which way to do something, do it both ways and see which works better. - John Carmack
- BLACK_PHOENIX
- Posts: 126
- Joined: Wed Sep 27, 2006 6:42 am
really i was talking seriously:
viewtopic.php?t=1495&highlight=
Do you want an RF build with that commands?
viewtopic.php?t=1495&highlight=
Do you want an RF build with that commands?
- BLACK_PHOENIX
- Posts: 126
- Joined: Wed Sep 27, 2006 6:42 am
Grazie federico
thats great. could u please compile ur rf version for me.
i cant really compile it properly on my pc.
u can post it as a link. i just want the Reality Factory exe file.
could u also please change the name of the reality factory log and ini file
i want tochange the name of
RealityFactory.ini to data.ini
realityfactory.txt to Gdata.txt
thats great. could u please compile ur rf version for me.
i cant really compile it properly on my pc.
u can post it as a link. i just want the Reality Factory exe file.
could u also please change the name of the reality factory log and ini file
i want tochange the name of
RealityFactory.ini to data.ini
realityfactory.txt to Gdata.txt
sorry, no. I don't want to make change without a sense. What is the purpouse of the change?could u also please change the name of the reality factory log and ini file
i want tochange the name of
RealityFactory.ini to data.ini
realityfactory.txt to Gdata.txt
Anyway here's the link of a standard (not Tokaphysics powered) build of RF including the LoadAttributeEntity and SaveAttributeEntity lowlevel command:
http://files.filefront.com/RealityFacto ... einfo.html[FIXED]
SaveAttributesEntity(char *szSaveFile,char *EntityName)
LoadAttributesEntity(char *szSaveFile,char *EntityName)
it saves and loads the attributes of the specified pawn. I suggest to combine the szSaveFile (the name of the file containing the attributes) with EntityName of the pawn. For example:
SaveAttributesEntity(EntityName # ".ini",EntityName);
will write, if the pawn is named for example MY_PAWN, a file name MY_PAWN.ini containing the attributes and their values.
I hope this was what you and Juutis were looking for.
Last edited by federico on Sun Nov 12, 2006 3:44 pm, edited 1 time in total.
- BLACK_PHOENIX
- Posts: 126
- Joined: Wed Sep 27, 2006 6:42 am
sorry I was probably out of mind because I packed and sent the debug build of RF (that's why it was searching for a "_d.dll" file).
I fixed the link in the previous post. The new link is:
http://files.filefront.com/RealityFacto ... einfo.html
Yes it should be the last version of RF, anyway it's the last source released.
I fixed the link in the previous post. The new link is:
http://files.filefront.com/RealityFacto ... einfo.html
Yes it should be the last version of RF, anyway it's the last source released.
- BLACK_PHOENIX
- Posts: 126
- Joined: Wed Sep 27, 2006 6:42 am