I'm not sure why you'd want to do that.. just to load saved profiles?
Basically, I want to be able to read a line in the console. This is not begging, I am just crap with C#, which is what I would like to use as it would be suitable for a basic task.
So, I basically want to use a GSC mod to send a line to the console, which, for exmaple starts with: 'program_read'
I would like it to ONLY read lines that start with that.
I would also like to be able to send commands to the console, like program_response XXXX as a dvar, which I can read with the script.
For example, a player uses a /save command in the console. The game sends these lines to the console:
program_saveguid YOUR GUID HERE
program_save money 12345
program_save kills 123
program_save deaths 23
program_savestop
The program picks up those lines, and creates a text file. In this case, the file is called playerstats_YOURGUIDHERE.sav and it looks like this inside the file:
And when the program sees the line 'program_loadguid YOURGUIDHERE' in the console, it loads that file one line at a time. One line is loaded and it waits for a line 'program_loadnext' to appear before it proceeds. This is to give time for the script to set the saved lines into a script definition. Such as: self.money = 12345; self.kills = 123; self.deaths = 23;Code:money 12345 kills 123 deaths 23
This is quite hard for me to do as I do not know how to read the console. If someone could assist me in reading and writing to the console in alterIWnet using a C# script, it would make my day. I can figure out the rest.
-----♥♥♥-----
----♥♥♥♥♥ ---Put This
---♥♥---♥♥---In Your
---♥♥---♥♥---Sig If
---♥♥---♥♥---You Know
----♥♥-♥♥----Someone
-----♥♥♥-----Who Died Or Is Suffering
----♥♥-♥♥----from
---♥♥---♥♥---Cancer
I'm not sure why you'd want to do that.. just to load saved profiles?
-----♥♥♥-----
----♥♥♥♥♥ ---Put This
---♥♥---♥♥---In Your
---♥♥---♥♥---Sig If
---♥♥---♥♥---You Know
----♥♥-♥♥----Someone
-----♥♥♥-----Who Died Or Is Suffering
----♥♥-♥♥----from
---♥♥---♥♥---Cancer
Right, that makes more sense :3
Either way, why would you want to inject crap and use the console rather than just reading the memory?
Make a program that checks the client info (struct in the memory) of all players and get the XUID, then all the info from your mod. Check the XUID every, say, 10 seconds and if it has changed you just save the stats. Really not that hard to do unless you want the console part, which I honestly can't find anything about justify the extra debugging, code and injections.. not to mention the anticheat biting you if you do it wrong..
HACKINGPIE (12-24-2011)
Thanks, I have coded a plugin and i'm about to test it out.
-----♥♥♥-----
----♥♥♥♥♥ ---Put This
---♥♥---♥♥---In Your
---♥♥---♥♥---Sig If
---♥♥---♥♥---You Know
----♥♥-♥♥----Someone
-----♥♥♥-----Who Died Or Is Suffering
----♥♥-♥♥----from
---♥♥---♥♥---Cancer