saving and loading variables to a text file i/o
-
- Posts: 50
- Joined: Mon Jun 08, 2009 4:58 am
saving and loading variables to a text file i/o
I'm working on a project for quake3 and I'm stuck I have no idea how to save/load variables to txt. can any one point me to a tutorial that might help me out? thanks
-
- Posts: 50
- Joined: Mon Jun 08, 2009 4:58 am
There's an fopen, a read, a write, and a close builtin/traps.
Ideally you'd have the config saved on the client, and have that transfered to their server of choice, assuming its a CuTF sort of mod. But if its a long-term rpg sort of mod then yeah, needs to be serverside.
just look in cg_syscalls.c or whatever its called for the server. It might give you some ideas.
Or yeah, just use the client's userinfo by setting the cvars to archived.
Ideally you'd have the config saved on the client, and have that transfered to their server of choice, assuming its a CuTF sort of mod. But if its a long-term rpg sort of mod then yeah, needs to be serverside.
just look in cg_syscalls.c or whatever its called for the server. It might give you some ideas.
Or yeah, just use the client's userinfo by setting the cvars to archived.
-
- Posts: 50
- Joined: Mon Jun 08, 2009 4:58 am
ah perfect thanks yeah its a rpg mod.
Last edited by metalmodman on Thu Jun 25, 2009 2:55 am, edited 2 times in total.