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.

Chicken Invaders Universe: TGA files

Featured Replies

  • Author
  • Localization

Francis, posted Wed Jul 01, 2020 1:16 pm (57411)


In this topic, a script to make the .tga files in Chicken Invaders Universe readable in editing software was created, and it's really useful, but would it be possible to have a script that does the exact opposite? (That makes the readable .tga files unreadable so that new tga files can be added to the game)

How it should work=

This is an example header of one of the game's TGA files after it's made readable=
Code:
00 00 02 00 00 00 00 00 00 00 00 00 00 01 00 01 20 00


And this is the result after making it unreadable and fitting into the game.
Code:
00 01 00 00 00 01 00 00 20 00 00 00


To convert it making it unreadable, you need to remove the first 12 bytes of the header
Code:
'00 00 02 00 00 00 00 00 00 00 00 00' 00 01 00 01 20 00


That will leave you with 6 bytes=
Code:
00 01 00 01 20 00


Now, you need to add after the second byte, the fourth byte, and the sixth byte (in this case) the 00 byte=
Code:
00 01 '00 00' 00 01 '00 00' 20 00 '00 00'


To get a tga file to try the script on, click here.

Basically, the script I need should do the exact opposite of the one created on this topic. so, if you're struggling in making this, just check that script and make its opposite.

I'd like to leave a side note and thank @EmeraldPlay for designing the .tga script and @Acewell for actually making it.
  • Author
  • Localization

aluigi, posted Thu Jul 02, 2020 5:52 am (57419)


Code:
# Chicken Invaders Universe TGA encoder

getdstring DUMMY 12
get WIDTH short
get HEIGHT short
get TYPE byte
get DUMMY byte
savepos OFFSET
get SIZE asize
math SIZE - OFFSET
get NAME basename
string NAME "_new.tga"

log MEMORY_FILE 0 0
put WIDTH long MEMORY_FILE
put HEIGHT long MEMORY_FILE
put TYPE long MEMORY_FILE
log NAME 0 12 MEMORY_FILE
append
log NAME OFFSET SIZE
append
  • Author
  • Localization

Francis, posted Thu Jul 02, 2020 5:55 am (57420)


Thank you.
  • Author
  • Localization

mohammad as, posted Thu Aug 06, 2020 3:55 pm (57929)


How do I use that codes?
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.