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 / end of level .ini files

Author
Message
Teacher
18
Years of Service
User Offline
Joined: 29th Dec 2005
Location:
Posted: 6th Nov 2010 20:43
I'm nor sure if this is even possible: can anyone advise please?
At the end of a level, I'd like fpsc to write a local .ini file for later upload to an sql database (you can see where I'm going here) - is it possible?
Thanks to the community!

You are only coming through in waves...
Gencheff
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: UK by way of USSR
Posted: 6th Nov 2010 20:44
With RPG Mod , it's possible.

Teacher
18
Years of Service
User Offline
Joined: 29th Dec 2005
Location:
Posted: 6th Nov 2010 20:56
Gencheff - thanks (and that was fast!)
Is the neccessary info in the RPG mod docs, I've not used it yet.
Thanks

You are only coming through in waves...
Gencheff
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: UK by way of USSR
Posted: 6th Nov 2010 20:58
Yes,there's a manual in the archive.

Send BlackFox an e-mail and he'll give you a link to the mod.

Teacher
18
Years of Service
User Offline
Joined: 29th Dec 2005
Location:
Posted: 6th Nov 2010 21:03
@Gencheff
Many thanks, will do!

You are only coming through in waves...
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 7th Nov 2010 03:54
Quote: "Is the neccessary info in the RPG mod docs, I've not used it yet."


@ Teacher,

The information to write into a file is in the RPG manual. I had this added to the mod for a different usage than what you specified. We have specific objectives that the player needs to achieve in our game developments. As each objective is completed, we have the progress for that level written to that file for later review. It is handy to be able to look at a file to see where or how your points, experience, etc were achieved.

If you have issues with this feature, let me know. I use it quite extensively and I'm more than happy to help you out.

@ Gencheff- thanks for pointing this out for the poster. I appreciate that. Perhaps we should enlist you to be our RPG spokesperson.

- BlackFox

RPG Mod- Create a world full of adventure
Teacher
18
Years of Service
User Offline
Joined: 29th Dec 2005
Location:
Posted: 7th Nov 2010 10:56
@BlackFox
Thanks very much for the offer of support - I'm sure I'll be taking you up on that!
I'll download RPG and instal it first and see what I can get through myself - is there a 'best' location for most recent version and manual?
Just out of interest, what I am up to is attempting to save achievement then upload to an online record for comparative competition. That will be nice if I can make it work!
@Gencheff Thanks for facilitating all of this, that was kind and helpful.

You are only coming through in waves...
Gencheff
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: UK by way of USSR
Posted: 7th Nov 2010 17:02 Edited at: 7th Nov 2010 17:03
@BlackFox - I'd be more than happy to

I've used this function for database purposes and it works quite well.Just need a side program to handle data processing to my host.

@Teacher - To make it easier for you here are the functions from the manual.You'll need to incorporate these with some sort of conditions.For example if the player is in a trigger zone , to write his achievements to a file. (Example - :state=0,plrwithinzone=1:rpg_openfile2write=1 achievement.ini,rpg_write2file=1 statistics,state=1 )
state is switched to 1 in the end,in order not to loop the script.

Quote: "Write To File - (v3.2)

Actions
1. rpg_openfile2write=filenumber filename
2. rpg_write2file=filenumber textdata
3. rpg_deletefile=filename

* filenumber is a value of 1-3. You may have up to three different files.
* filename is the name of the file including an extension.
* Do not include the path within the filename.
* the file will reside in subfolder "rpgfiles" with the Files folder.
* textdata is the string of alphanumeric text you wish to write "


BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 7th Nov 2010 17:03
Quote: "Thanks very much for the offer of support - I'm sure I'll be taking you up on that!
I'll download RPG and instal it first and see what I can get through myself - is there a 'best' location for most recent version and manual?
Just out of interest, what I am up to is attempting to save achievement then upload to an online record for comparative competition. That will be nice if I can make it work!"


No problem. Our database shows you registered and your account info was sent to you back in October. If you did not receive it, let me know and I can resend it.

As far as writing to the file, that option came in RPG Mod v3.20. The current release is v3.30. V3.xx is for FPSC v1.17; v2.xx is for FPSC v1.16. The writing to a file is not in the v2.xx series at all.

- BlackFox

RPG Mod- Create a world full of adventure
Teacher
18
Years of Service
User Offline
Joined: 29th Dec 2005
Location:
Posted: 7th Nov 2010 22:22
Excellent stuff!
I've downloaded the latest versions for 1.7 and 1.6 (both of which are in use), also got the latest MySql version, adding a database to the site and trying to catch a breath!
Many thanks for the help which will be invaluable.

You are only coming through in waves...

Login to post a reply

Server time is: 2024-11-24 16:43:12
Your offset time is: 2024-11-24 16:43:12