Mirage Source

Free ORPG making software.
It is currently Tue Mar 19, 2024 4:50 am

All times are UTC




Post new topic Reply to topic  [ 56 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: Fri Jul 07, 2006 12:58 pm 
Offline
Knowledgeable

Joined: Sun May 28, 2006 9:06 pm
Posts: 147
hey,

how can i change something in the player account data even if he isnt online? for example his name, the only way i know is this:

n = isplaying(name)

setplayername(n,"his name")



hopefully you know what i mean :)


thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 1:17 pm 
Offline
Knowledgeable

Joined: Thu Jun 15, 2006 8:20 pm
Posts: 158
getvar and putvar i guess... hmmmm

you'll have to know their account info though... maybe if you make an accounts list tool and char list tool... so it gets all accounts from the server (their names) and so on... but this would be VERY laggy if there are alot of accounts...

_________________
Fallen Phoenix Online:
An online game world based on the Harry Potter books
www.fallenphoenix.org


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 1:32 pm 
Why don't you just make him log off, and then change his name in his account?


Top
  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 2:39 pm 
Offline
Knowledgeable

Joined: Sun May 28, 2006 9:06 pm
Posts: 147
Advocate wrote:
Why don't you just make him log off, and then change his name in his account?


so, you mean, let the player log off, and then i just change it? if you mean this, nope, because i use this for something else...actually, what i want is this:

i have the Players name, and lets say he is offline, i can still change or do stuff with the client, because i am an admin, k?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 3:20 pm 
Offline
Pro

Joined: Mon May 29, 2006 1:40 pm
Posts: 430
with the client?
you cant talk to the client if they arent connected to you. lol.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 3:31 pm 
I think he wants to be able to edit player accounts from the client.


Top
  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 3:58 pm 
Offline
Knowledgeable

Joined: Sun May 28, 2006 9:06 pm
Posts: 147
Advocate wrote:
I think he wants to be able to edit player accounts from the client.

exactly, but even if they are offline :)

we are getting closer xD


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 4:43 pm 
Offline
Knowledgeable

Joined: Thu Jun 15, 2006 8:20 pm
Posts: 158
notepad.

lol, nah, erm... i'm trying to think of a way that wouldn't require the server to load ALL accounts.... that would take up too much RAM etc... and make the game aloooot slower.... give me awhile lol

_________________
Fallen Phoenix Online:
An online game world based on the Harry Potter books
www.fallenphoenix.org


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 5:01 pm 
Offline
Pro

Joined: Mon May 29, 2006 2:58 pm
Posts: 370
Me and mis ran into this problem.

We removed characters so the players are directly editable. Account = player :-D


Alternatively yopu could open every file and search for the name, possibly save the account name with with the character names in charlist.txt?

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 5:36 pm 
Just change the charlist.txt to an ini, and have the account name as the header, and list the characters they have under the header.


Top
  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 9:06 pm 
Offline
Knowledgeable

Joined: Sun May 28, 2006 9:06 pm
Posts: 147
grimsk8ter11 wrote:
Alternatively yopu could open every file and search for the name, possibly save the account name with with the character names in charlist.txt?


yeah, bu thow do i open each file and read it?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 9:09 pm 
Offline
Knowledgeable

Joined: Thu Jun 15, 2006 8:20 pm
Posts: 158
yeh, for Monster Trainer, i've changed things majorly with account saving, i've made a new thing altogether for each single player, they have a player save for their monsters. this means i can just find the file by entering the player name. then I can make an inbuild-editor for monsters e.g. "give levelup" etc. Looks good anyway

_________________
Fallen Phoenix Online:
An online game world based on the Harry Potter books
www.fallenphoenix.org


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 9:25 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
Whats that got to do with his problem?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 9:49 pm 
Offline
Knowledgeable

Joined: Thu Jun 15, 2006 8:20 pm
Posts: 158
Kite wrote:
Whats that got to do with his problem?


duh.... that he should make a system like was mentioned so that it splits accounts and players apart so it has accounts folder and players folder... i was just explaining what use it has

_________________
Fallen Phoenix Online:
An online game world based on the Harry Potter books
www.fallenphoenix.org


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 9:52 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
but this doesnt tell him how to edit their stats when they are offline.

if the stats aren't loaded into the server, you are going to need to read the values out of the ini, change them accordingly and then write the new values into the ini, then erase all the variables used by the server to save RAM, Gilgamesch.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 9:54 pm 
Offline
Knowledgeable

Joined: Thu Jun 15, 2006 8:20 pm
Posts: 158
Kite wrote:
but this doesnt tell him how to edit their stats when they are offline.

if the stats aren't loaded into the server, you are going to need to read the values out of the ini, change them accordingly and then write the new values into the ini, then erase all the variables used by the server to save RAM, Gilgamesch.


if they're offline... it won't have the info stored in RAM... or would it? :S

otherwise if they're online you just call saveplayer(index) and that'll save the player and, i guess, update the stats for the player too, or you'd have to call senddatatoall(updatedstats & sep_char & shit)

so really it's not THAT hard... it's just like... updating items

_________________
Fallen Phoenix Online:
An online game world based on the Harry Potter books
www.fallenphoenix.org


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 10:01 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
It's not. All the items are saved into the RAM of the server because the data is constantly being sent and recieved. Players are not loaded up unless they are online, so we need a different method to check data in offline players.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 10:05 pm 
Offline
Knowledgeable

Joined: Sun May 28, 2006 9:06 pm
Posts: 147
nah tosuxo...if i did that the player HAS to be online..thats the problem :/

because "index" is the number of the player that is online, for example if 10 people are online, the number of you can be between 0 (not sure if its not 1 ) and 10, it depend on when you logged in, k?


but, how can i read them out of the ini?
oh, and kite, if you have time, could you help me with that in msn? and then i post it for the others here, in case someone else needs it too :)

thanks guys!!!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 10:07 pm 
Offline
Knowledgeable

Joined: Thu Jun 15, 2006 8:20 pm
Posts: 158
Gilgamesch wrote:
nah tosuxo...if i did that the player HAS to be online..thats the problem :/

because "index" is the number of the player that is online, for example if 10 people are online, the number of you can be between 0 (not sure if its not 1 ) and 10, it depend on when you logged in, k?


but, how can i read them out of the ini?
oh, and kite, if you have time, could you help me with that in msn? and then i post it for the others here, in case someone else needs it too :)

thanks guys!!!


that's what i said.... if the player's online you'd have to do it like that... otherwise have a diff save system... then you won't have a problem with .ini

i meant that if you were editing online players you have to update them and save them... or just update would work...

but if they're offline then you can edit the .ini anyway

_________________
Fallen Phoenix Online:
An online game world based on the Harry Potter books
www.fallenphoenix.org


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 10:08 pm 
Offline
Knowledgeable

Joined: Sun May 28, 2006 9:06 pm
Posts: 147
Tosuxo wrote:
but if they're offline then you can edit the .ini anyway


yup, but that "editing the ini" is the stuff i cant do :/, or at least, i dont know how to do it


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 10:11 pm 
Offline
Knowledgeable

Joined: Thu Jun 15, 2006 8:20 pm
Posts: 158
Gilgamesch wrote:
Tosuxo wrote:
but if they're offline then you can edit the .ini anyway


yup, but that "editing the ini" is the stuff i cant do :/, or at least, i dont know how to do it


that's why you should do as mentioned before... make accounts save to a different file to players... then you only have to do the getvar and putvar for them :)

_________________
Fallen Phoenix Online:
An online game world based on the Harry Potter books
www.fallenphoenix.org


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 10:12 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
Tosuxo, did you read his original post?

He was asking for a way to search through the data in offline players. The engine does not currently allow this because it can only read data which is currently stored in variables in the server/client. To, say, read a characters guidname, you would have to read the data from the ini, store it as a temp. value, use it to do what you need then dump the memory.

I'm pretty sure he knows how to save and update online player data.

Sorry Gilgamesch, i'm a bit weighed down with coursework at the moment, but ill be back on next week if you haven't sorted it out by then. :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 10:14 pm 
Offline
Knowledgeable

Joined: Sun May 28, 2006 9:06 pm
Posts: 147
Kite wrote:
Sorry Gilgamesch, i'm a bit weighed down with coursework at the moment, but ill be back on next week if you haven't sorted it out by then. :)


k thanks man :)

and @tosuxo, i really appreciate that you are trying to help me, but like kite said, i know how to do that :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 10:18 pm 
Offline
Knowledgeable

Joined: Thu Jun 15, 2006 8:20 pm
Posts: 158
Kite wrote:
Tosuxo, did you read his original post?

He was asking for a way to search through the data in offline players. The engine does not currently allow this because it can only read data which is currently stored in variables in the server/client. To, say, read a characters guidname, you would have to read the data from the ini, store it as a temp. value, use it to do what you need then dump the memory.

I'm pretty sure he knows how to save and update online player data.

Sorry Gilgamesch, i'm a bit weighed down with coursework at the moment, but ill be back on next week if you haven't sorted it out by then. :)


dude, do you actually UNDERSTAND how visual basic works? you're fuckin stupid if you think it can only read from RAM...

server side make it search the data in the .ini file (which would be made easier making it so it's players have diff ini to the accounts).

Even when i'm tipsy I'm making more sense than you... lol

_________________
Fallen Phoenix Online:
An online game world based on the Harry Potter books
www.fallenphoenix.org


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 10:48 pm 
No, you're reading what he's saying wrong, he's saying Gilga doesn't know how to edit ini files, so your method won't work. He was talking about players that ARE online, you're twisting everything.


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 56 posts ]  Go to page 1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group