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.

Eastward .g file

Featured Replies

  • Author
  • Localization

canboy, posted Thu Sep 16, 2021 2:07 pm (66436)


Eastward game war release today and i found out that it has many .g archive file
could anyone help me unpack it?
  • Author
  • Localization

aluigi, posted Thu Sep 16, 2021 3:24 pm (66437)


Code:
# Eastwar G

comtype zstd
get DUMMY long  # 0x6a37
get FILES long
for i = 0 < FILES
    get NAME string
    get OFFSET long
    get ZIP long    # 2
    get SIZE long
    get ZSIZE long
    if ZIP != 2
        print "Error: unsupported ZIP %ZIP%, contact me"
        cleanexit
    endif
    clog NAME OFFSET ZSIZE SIZE
next i
  • Author
  • Localization

canboy, posted Thu Sep 16, 2021 4:06 pm (66439)


aluigi wrote:
Code:
# Eastwar G

comtype zstd
get DUMMY long  # 0x6a37
get FILES long
for i = 0 < FILES
    get NAME string
    get OFFSET long
    get ZIP long    # 2
    get SIZE long
    get ZSIZE long
    if ZIP != 2
        print "Error: unsupported ZIP %ZIP%, contact me"
        cleanexit
    endif
    clog NAME OFFSET ZSIZE SIZE
next i

i open this file and it show up like this
Code:
  offset   filesize   filename
--------------------------------------
Error: unsupported ZIP 0, contact me

- 0 files found in 0 seconds
  coverage file 0     0%   57         89385272   . offset 00000039

Can u fix it?
  • Author
  • Localization

aluigi, posted Thu Sep 16, 2021 4:58 pm (66444)


I think that ZIP 0 is uncompressed, try this updated script:
Code:
comtype zstd
get DUMMY long  # 0x6a37
get FILES long
for i = 0 < FILES
    get NAME string
    get OFFSET long
    get ZIP long    # 2
    get SIZE long
    get ZSIZE long
    if ZIP == 0
        log NAME OFFSET SIZE
    elif ZIP == 2
        clog NAME OFFSET ZSIZE SIZE
    else
        print "Error: unsupported ZIP %ZIP%, contact me"
        cleanexit
    endif
next i

If you can provide the G file that gave you that problem, it would help.
  • Author
  • Localization

canboy, posted Fri Sep 17, 2021 2:49 am (66455)


aluigi wrote:
I think that ZIP 0 is uncompressed, try this updated script:
Code:
comtype zstd
get DUMMY long  # 0x6a37
get FILES long
for i = 0 < FILES
    get NAME string
    get OFFSET long
    get ZIP long    # 2
    get SIZE long
    get ZSIZE long
    if ZIP == 0
        log NAME OFFSET SIZE
    elif ZIP == 2
        clog NAME OFFSET ZSIZE SIZE
    else
        print "Error: unsupported ZIP %ZIP%, contact me"
        cleanexit
    endif
next i

If you can provide the G file that gave you that problem, it would help.

Oh its works
btw here is that .g file https://drive.google.com/file/d/1E1Ce_D ... cSoad/view
  • Author
  • Localization

aluigi, posted Fri Sep 17, 2021 6:25 am (66460)


Ok, I confirm that the script is correct ;)
  • Author
  • Localization

sinnerclown380, posted Fri Sep 17, 2021 9:07 am (66462)


aluigi wrote:
Ok, I confirm that the script is correct ;)


Hi aluigi, which is the localization file?
  • Author
  • Localization

aluigi, posted Fri Sep 17, 2021 9:55 am (66464)


The files in locale.g contains all the texts.
The extracted files indeed are just json (check the "en" files), open them with a text editor and have fun.
reimport2.bat should work in reinjecting the edited files back in the archive (if you want to translate the game).
  • Author
  • Localization

canboy, posted Fri Sep 17, 2021 10:57 am (66467)


aluigi wrote:
The files in locale.g contains all the texts.
The extracted files indeed are just json (check the "en" files), open them with a text editor and have fun.
reimport2.bat should work in reinjecting the edited files back in the archive (if you want to translate the game).

Oh but the font image seems have some issues
I found that it have pgf header not as png file as said in index and fnt file
I tried around with some pgf viewer but can't open it, so it seems have some encryption.
Could u give it a look?
  • Author
  • Localization

aluigi, posted Fri Sep 17, 2021 12:12 pm (66470)


Not my field. Try asking in the Graphics section.
  • Author
  • Localization

sinnerclown380, posted Sat Sep 18, 2021 9:25 am (66510)


aluigi wrote:
The files in locale.g contains all the texts.
The extracted files indeed are just json (check the "en" files), open them with a text editor and have fun.
reimport2.bat should work in reinjecting the edited files back in the archive (if you want to translate the game).



- 0 files reimported in 0 seconds
- 90 files or logs left original, not available in the folder
coverage file 0 0% 4718 1951984 . offset 0000126e

Gave such an error aluigi ?
  • Author
  • Localization

aluigi, posted Sat Sep 18, 2021 11:43 am (66513)


Are you sure you used it in the correct way?
You must select the SAME file and folder you selected during extraction.
  • Author
  • Localization

sinnerclown380, posted Sat Sep 18, 2021 12:38 pm (66514)


aluigi wrote:
Are you sure you used it in the correct way?
You must select the SAME file and folder you selected during extraction.


Error: incomplete input file 0: D:\tools\tools\quickbms yeni\d06eebd5bfbe30f6ad73b65303a94e21\en
Can't read 1 bytes from offset 00006029.
Anyway don't worry, it's possible that the BMS script has been written
to exit in this way if it's reached the end of the archive so check it
or contact its author or verify that all the files have been extracted.
Please check the following coverage information to know if it's ok.

coverage file 0 100% 24617 24617 . offset 00006029

Last script line before the error or that produced the error:
5 get NAME string
coverage file 0 100% 24617 24617 . offset 00006029




yes i did it wrong the error i got now
  • Author
  • Localization

saker, posted Sun Sep 19, 2021 12:15 pm (66539)


sinnerclown380 wrote:
aluigi wrote:
Are you sure you used it in the correct way?
You must select the SAME file and folder you selected during extraction.


Error: incomplete input file 0: D:\tools\tools\quickbms yeni\d06eebd5bfbe30f6ad73b65303a94e21\en
Can't read 1 bytes from offset 00006029.
Anyway don't worry, it's possible that the BMS script has been written
to exit in this way if it's reached the end of the archive so check it
or contact its author or verify that all the files have been extracted.
Please check the following coverage information to know if it's ok.

coverage file 0 100% 24617 24617 . offset 00006029

Last script line before the error or that produced the error:
5 get NAME string
coverage file 0 100% 24617 24617 . offset 00006029




yes i did it wrong the error i got now


I've got the same issue, can't reimport the files, did you find a fix?
  • Author
  • Localization

canboy, posted Sun Sep 19, 2021 6:13 pm (66549)


Work fine with reimport2
  • Author
  • Localization

saker, posted Sun Sep 19, 2021 6:19 pm (66550)


Alright, I was doing something wrong, I managed to get it done right now. Thanks!
  • Author
  • Localization

sinnerclown380, posted Mon Sep 20, 2021 10:35 am (66561)


Zolodei wrote:
Program for packing and unpacking * .G files

Example: ConsoleProgram_Eastward.exe -e NameFile
Example: ConsoleProgram_Eastward.exe -i NameDirectory

https://cloud.mail.ru/public/KEb4/JqMiEy9HZ



Thank you so much.
  • Author
  • Localization

EagleAce, posted Thu Sep 23, 2021 3:53 am (66602)


aluigi wrote:
I think that ZIP 0 is uncompressed, try this updated script:
Code:
comtype zstd
get DUMMY long  # 0x6a37
get FILES long
for i = 0     get NAME string
    get OFFSET long
    get ZIP long    # 2
    get SIZE long
    get ZSIZE long
    if ZIP == 0
        log NAME OFFSET SIZE
    elif ZIP == 2
        clog NAME OFFSET ZSIZE SIZE
    else
        print "Error: unsupported ZIP %ZIP%, contact me"
        cleanexit
    endif
next i

If you can provide the G file that gave you that problem, it would help.


Sooo yeah, I'm getting into coding recently (1-2 years, I'm still a very very noob coder) mostly in python, c# and c (A little bit of assembly), but I can't quite get what language is this script made of. Would it be possible to get some information on that so that I can use this script? Thanks a lot. :D
  • Author
  • Localization

aluigi, posted Thu Sep 23, 2021 7:22 am (66606)


It's a script for quickbms:
http://quickbms.com

It's a stand-alone tool without dependencies.
  • Author
  • Localization

nanodrummer, posted Sun Oct 17, 2021 1:51 pm (67070)


Zolodei wrote:
Program for packing and unpacking * .G files

Example: ConsoleProgram_Eastward.exe -e NameFile
Example: ConsoleProgram_Eastward.exe -i NameDirectory

https://cloud.mail.ru/public/Wa6Z/s9ypByze3


Created an account just to thank you, sir.
@canboy also
  • Author
  • Localization

AK47Gaza, posted Sat Jan 07, 2023 5:06 pm (74910)


Hi all, New here and trying to Localize Eastwood, But I need some help How I can open the files containing the texts, and how to re-add it to the game after I finish?
  • Author
  • Localization

brtraducoes, posted Mon Jan 09, 2023 4:59 pm (74937)


AK47Gaza wrote:
Hi all, New here and trying to Localize Eastwood, But I need some help How I can open the files containing the texts, and how to re-add it to the game after I finish?


Hello, I am localizing this game to the brazilian portuguese language!
The game texts are not all in the locale.g file!
There are other texts in other files as well, there are images to translate which are important to make the localization of the translation and in addition to have to program the interface of the texts to fit new texts!
And create new characters depending on the language.
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.