Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Playrix games (Township, Gardenscapes, Homescapes, Farmscapes etc.) - xml convert

Featured Replies

  • Author
  • Localization

SEBIX327, posted Sat Jun 04, 2022 3:04 pm (71844)


Hello!
Please help. In the games from Playrix, some game files are in .xml format, but instead of the default xml it is encoded as a PLXE string. I include the Sounds.xml file (which is from Township) and it's hard-coded.
  • Author
  • Localization

Ekey, posted Sat Jun 04, 2022 7:55 pm (71849)


Just compressed by ZSTD.

Code:
get NAME basename
get EXT extension
string NAME = "_unpacked."
string NAME = EXT

get ZSIZE asize
math ZSIZE -= 12

comtype zstd
idstring "PLXE"
get FLAGS long
get SIZE long
savepos OFFSET
clog NAME OFFSET ZSIZE SIZE
  • Author
  • Localization

SEBIX327, posted Sun Jun 05, 2022 10:23 am (71856)


Ekey wrote:
Just compressed by ZSTD.

Code:
get NAME basename
get EXT extension
string NAME = "_unpacked."
string NAME = EXT

get ZSIZE asize
math ZSIZE -= 12

comtype zstd
idstring "PLXE"
get FLAGS long
get SIZE long
savepos OFFSET
clog NAME OFFSET ZSIZE SIZE



Thanks, it works. Now how do I convert it back to PLXE?
And do you have any idea what to do with it?
viewtopic.php?f=7&t=16963
  • Author
  • Localization

Ekey, posted Sun Jun 05, 2022 5:18 pm (71861)


SEBIX327 wrote:
Thanks, it works. Now how do I convert it back to PLXE?


Code:
comtype zstd_compress

get SIZE asize
clog MEMORY_FILE2 0 SIZE SIZE
get ZSIZE asize MEMORY_FILE2

log MEMORY_FILE 0 0
putdstring "PLXE" 4 MEMORY_FILE
set FLAGS long "0x40004"
put FLAGS long MEMORY_FILE
put SIZE long MEMORY_FILE

get NAME basename
get EXT extension
string NAME = "_packed."
string NAME = EXT

log NAME 0 12 MEMORY_FILE
append
log NAME 0 ZSIZE MEMORY_FILE2
append


SEBIX327 wrote:
And do you have any idea what to do with it?
viewtopic.php?f=7&t=16963


Nah.
  • Author
  • Localization

SEBIX327, posted Sun Jun 05, 2022 5:55 pm (71863)


Ekey wrote:
SEBIX327 wrote:
Thanks, it works. Now how do I convert it back to PLXE?


Code:
comtype zstd_compress

get SIZE asize
clog MEMORY_FILE2 0 SIZE SIZE
get ZSIZE asize MEMORY_FILE2

log MEMORY_FILE 0 0
putdstring "PLXE" 4 MEMORY_FILE
set FLAGS long "0x40004"
put FLAGS long MEMORY_FILE
put SIZE long MEMORY_FILE

get NAME basename
get EXT extension
string NAME = "_packed."
string NAME = EXT

log NAME 0 12 MEMORY_FILE
append
log NAME 0 ZSIZE MEMORY_FILE2
append





There is a problem. With Packages.xml and Events.xml. Something like this is displayed.

https://drive.google.com/drive/folders/ ... sp=sharing
  • Author
  • Localization

AirShark, posted Thu Mar 16, 2023 3:28 pm (75945)


Help me decode XML file
Older script not work
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.