No..What do you mean? Post both of them
|
|
need some help im trying to take my old player files and xfer them to my new player saving from the old saving method from the 718s to matrix rs3 account loading can anyone help me here little stuck trying to copy a whole player file over how would i go about doing this if you know what i mean.

No..What do you mean? Post both of them

I mean im trying to xfer the player files from .p to the .acc files on the new player saving
Like xferring the player class fields to the player file on mx 830s player saving system

im trying to do something the long the lines of this but not sure how to do it.Code:Player player = (Player) SerializableFilesManager.loadPlayer(accs); Account account = (Account) JsonFileManager.loadJsonFile(new File("./data/accounts/blacksabath.acc")); Player player2 = (Player) SerializationUtilities.loadObject(account.getFile(100)); fields.clear(); for(final Field field : player.getClass().getDeclaredFields()) { for(final Field field2 : player2.getClass().getDeclaredFields()) { final int modifiers = field.getModifiers(); if(Modifier.isStatic(modifiers) || Modifier.isTransient(modifiers) || Modifier.isVolatile(modifiers)) { continue; } if(field.getType() != String.class && field.getType() != boolean.class && field.getType() != byte.class && field.getType() != short.class && field.getType() != int.class && field.getType() != double.class && field.getType() != long.class && field.getType() != float.class) { continue; } field.setAccessible(true); fields.put(field.getName(), field); Class<?> classz = field.getType(); field.set(player2, field.getType()); final ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(new File("./data/accounts/" + account.getFile(100) + ".acc"))); out.writeObject(player); out.close(); } //account.resetFileTransmit(); JsonFileManager.saveAccount(account);

1) Is your server online? If not just delete the files and start over. 2) If it is online, why did you decide to change the structure of your player saving after releasing? You should've scrapped both matrix systems and just used json. I released it for matrix somewhere cba finding.

yes so if you experimented with the 830s and 876s they are using mx3 login server thats what im using now but trying to convert the old saving player files to the new player saving. without losing the data.

how would i go about doing this.
i am using json to save and load accs tho.

| « Npc health | Latest or Old Clean Repack/Source » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |