• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Source Compiling

Elite Diviner
Joined
Mar 12, 2009
Messages
472
Reaction score
59
Hi All,

I would like to share or make brain storming about source compiling, the source without data coming from [RELEASE] UPDATED 02-12-2018 Source and Server No Data No Client.

and my development environment:
- JDK1.8.0_152 64bit
- minimal-json-0.9.4.jar

and changed some code of AIScriptLoader.java from (original)

Code:
JsonObject object = JsonObject.readFrom(readFile(AIServiceProvider.getInstance().getAiPath(
                    reference.getAiOwner().getTemplate().getAiScriptClassName()
            ), StandardCharsets.UTF_8));

to

Code:
JsonObject object = Json.parse(readFile(AIServiceProvider.getInstance().getAiPath(
                    reference.getAiOwner().getTemplate().getAiScriptClassName()
            ), StandardCharsets.UTF_8)).asObject();

and it compiled completely successful without any warning or errors.

3HvOuzt - Source Compiling - RaGEZONE Forums


then it ran smoothly

View attachment heBHPZl.gif

Is this really OK? i am not sure since i am still new on this game and playing normally till level 10 :D:
 

Attachments

You must be registered for see attachments list
Last edited:
Elite Diviner
Joined
Mar 12, 2009
Messages
472
Reaction score
59
From what I can tell, it should be fine.

What kind of error were you getting before changing it into a Json.parse ?

Warning deprecated function readFrom() of minimal-json-0.9.2 that's why DNC suggested to downgrade it rather than fixing the code... i prefer to fix the code, here i am...
Aznkidd235 , is this the latest updated gameserver?
 
Upvote 0
Newbie Spellweaver
Joined
May 4, 2016
Messages
19
Reaction score
0
Warning deprecated function readFrom() of minimal-json-0.9.2 that's why DNC suggested to downgrade it rather than fixing the code... i prefer to fix the code, here i am...
Aznkidd235 , is this the latest updated gameserver?

It's the last game server source not dB I think...the lastest database needs a lot of work cuz many structures have changed
 
Upvote 0
Joined
Oct 28, 2011
Messages
2,465
Reaction score
1,258
Warning deprecated function readFrom() of minimal-json-0.9.2 that's why DNC suggested to downgrade it rather than fixing the code... i prefer to fix the code, here i am...
Aznkidd235 , is this the latest updated gameserver?

Yes, considering its an emu and I'm not building it for the whole planet. Downgrading was fine.
If someone wants to continue development or plan plan on extending from the code, yes - it'd make sense to take the time to upgrade.
Was a 50/50 and I didn't want to waste more time.
 
Upvote 0
Back
Top