Add Server - Ancient Empire

Started by darkjedimaster, Mar 03, 2025, 07:19 PM

Previous topic - Next topic

darkjedimaster

Mar 03, 2025, 07:19 PM Last Edit: Mar 04, 2025, 11:14 PM by darkjedimaster
Server Name: Ancient Empire
Game Folder ancient_empire
Type: NGE
URL of server website: https://malevolentmultiverse.com/swg

Mr-Miagi

Adapt what is useful, reject what is useless, and add what is specifically your own.

darkjedimaster

Mar 19, 2025, 12:38 AM #2 Last Edit: Jun 10, 2025, 05:24 AM by darkjedimaster
Can i get the polling feature added?
I got the XML hosted here: http://swgresources.malevolentgaming.net/active_resources.xml

Refresh set to every 6 or 12 hours should be fine!

Thanks =)

darkjedimaster

Requesting resource polling again. URL is http://swgresources.malevolentgaming.net/active_resources.xml

Thanks

Mr-Miagi

Jul 20, 2025, 02:08 AM #4 Last Edit: Jul 20, 2025, 02:12 AM by Mr-Miagi
I have looked at this but your xml has a different format than we expect. If you look at what we need for feeds to work here: https://swgaide.com/forum/index.php/topic,12.0.html

You see we only really need to key on available resources, depletion happens when they are no longer "seen" as available. The format/structure/tree of the xml needs to be what is posted or I have to write a new parser for just your feed.



Quote from: darkjedimaster on Jun 23, 2025, 07:42 AMRequesting resource polling again. URL is http://swgresources.malevolentgaming.net/active_resources.xml

Thanks
Adapt what is useful, reject what is useless, and add what is specifically your own.

darkjedimaster

Ok, i think i got the format correct this time =)

http://swgresources.malevolentgaming.net/current_resources.xml

Thank you for the help!!!

Mr-Miagi

The format is great now. However the resources classes need to be parsed before you export them. Have a look at GH's export format for example: https://galaxyharvester.net/exports/current48.xml

They are putting the underscored as an id (which I think comes directly from vanilla internal oracle tables in the game) but the actual context of the tag (and what the parser is looking for) is the "proper name" so to speak. You could probably scrape the associations from the above to make a simple regex filter to translate the class names during export. Or I'm sure you can find the translations in the game code as it's translated for display to user in the game to the capitalized format but it may be easier and quicker just to scrape and build a regex file...

Quote from: darkjedimaster on Jul 20, 2025, 05:45 AMOk, i think i got the format correct this time =)

http://swgresources.malevolentgaming.net/current_resources.xml

Thank you for the help!!!
Adapt what is useful, reject what is useless, and add what is specifically your own.