Join also our Discord channel! Click here.

...is this the uncrackable one?? (.za and .za2)

Post questions about game models here, or help out others!
ddadd
beginner
Posts: 36
Joined: Fri Mar 20, 2020 1:58 am
Has thanked: 3 times
Been thanked: 1 time

Re: ...is this the uncrackable one?? (.za and .za2)

Post by ddadd » Fri Mar 20, 2020 9:07 pm

I'm actually working on a carnevil fangame, so I'm looking for all the enemys textures, because I'm good at some forms of 3d modeling, but no good with textures.

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 3138
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 835 times
Been thanked: 1702 times

Re: ...is this the uncrackable one?? (.za and .za2)

Post by shakotay2 » Fri Mar 20, 2020 9:23 pm

Good old 16 bit texture times? (LeGreg January 07, 2007 04:00
https://www.gamedev.net/forums/topic/43 ... e-strange/)
R5G6B5 would be only fine, as long as it is used to display static unstretched images
anyways (tested with KRAMHED.WMS only!):

Code: Select all

from inc_noesis import *

def registerNoesisTypes():
    handle = noesis.register("whatever", ".wms")
    noesis.setHandlerTypeCheck(handle, noepyCheckType)
    noesis.setHandlerLoadRGBA(handle, noepyLoadRGBA)
    #noesis.logPopup(); 
    return 1

def noepyCheckType(data):
    bs = NoeBitStream(data)
    if bs.readBytes(2) != b'\x05\x80': 
        print("wrong sig!")
        return 0
    return 1

def noepyLoadRGBA(data, texList):
    bs = NoeBitStream(data)
    dataOffset = 40
    bs.seek(0x10)
    imgWidth = bs.readUInt()
    imgHeight = bs.readUInt()
    bs.seek(dataOffset)
    data = bs.readBytes(bs.getSize() - bs.tell())    
    data = rapi.imageDecodeRaw(data, imgWidth, imgHeight, "b5 g6 r5")
    texList.append(NoeTexture(rapi.getInputName(), imgWidth, imgHeight, data, noesis.NOESISTEX_RGBA32))
    return 1
btw: used scripts for getting textures from Ace and IronArthur as an inspiration - thanks for that!
(But without daemon1's "565" hint it would have led me to nowhere. :wink: )
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

User avatar
Henchman800
mega-veteran
mega-veteran
Posts: 203
Joined: Fri Nov 16, 2018 5:00 pm
Has thanked: 41 times
Been thanked: 10 times

Re: ...is this the uncrackable one?? (.za and .za2)

Post by Henchman800 » Sat Mar 21, 2020 8:47 am

Wow!!!
Thank you for the noesis script shakotay2! <3
Imma Test it later today :up:
shakotay2 wrote:
Fri Mar 20, 2020 9:23 pm
(But without daemon1's "565" hint it would have led me to nowhere. :wink: )
Yes! I had a friend helping me with the textures....so we sat there and tried a few things (this is how i came up with the 2 kramphed variants)
This Tipp really did the trick ^^

EDIT:
The script works super well! Opens and reads almost every texture correct:
Image
I noticed, that stuff like fonts, effects and sprite animations seem to be exported with a wrong palette or wrong colors:
Image

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 3138
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 835 times
Been thanked: 1702 times

Re: ...is this the uncrackable one?? (.za and .za2)

Post by shakotay2 » Sat Mar 21, 2020 1:26 pm

I'm not a "palette fan". :D

You may try out this swapping, though:
data = rapi.imageDecodeRaw(data, imgWidth, imgHeight, "r5 g6 b5")

(If it doesn't work, you need to search for the palette table and use it.)
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

User avatar
Henchman800
mega-veteran
mega-veteran
Posts: 203
Joined: Fri Nov 16, 2018 5:00 pm
Has thanked: 41 times
Been thanked: 10 times

Re: ...is this the uncrackable one?? (.za and .za2)

Post by Henchman800 » Sat Mar 21, 2020 2:47 pm

shakotay2 wrote:
Sat Mar 21, 2020 1:26 pm
You may try out this swapping, though:
data = rapi.imageDecodeRaw(data, imgWidth, imgHeight, "r5 g6 b5")

(If it doesn't work, you need to search for the palette table and use it.)
I tried every combination ob rgb/565 possible...sadly without success.
I started out with your swap though, and it gave me this:
Image

ddadd
beginner
Posts: 36
Joined: Fri Mar 20, 2020 1:58 am
Has thanked: 3 times
Been thanked: 1 time

Re: ...is this the uncrackable one?? (.za and .za2)

Post by ddadd » Sun Mar 22, 2020 9:50 pm

Thanks for all the info guys! I posted a tutorial on textures on youtube. Now we just need to find how to rip models. BTW just saw deaddy on texture resource

User avatar
Henchman800
mega-veteran
mega-veteran
Posts: 203
Joined: Fri Nov 16, 2018 5:00 pm
Has thanked: 41 times
Been thanked: 10 times

Re: ...is this the uncrackable one?? (.za and .za2)

Post by Henchman800 » Sun Mar 22, 2020 10:12 pm

ddadd wrote:
Sun Mar 22, 2020 9:50 pm
I posted a tutorial on textures on youtube.
Can you post a link? So people in the future have easy access :up:
BTW just saw deaddy on texture resource
....I wonder who could've done that.....

ddadd
beginner
Posts: 36
Joined: Fri Mar 20, 2020 1:58 am
Has thanked: 3 times
Been thanked: 1 time

Re: ...is this the uncrackable one?? (.za and .za2)

Post by ddadd » Sun Mar 22, 2020 10:50 pm

https://www.youtube.com/watch?v=BADPA4_ ... p1w03c010c
Oh, just realized you were guy commenting

User avatar
Henchman800
mega-veteran
mega-veteran
Posts: 203
Joined: Fri Nov 16, 2018 5:00 pm
Has thanked: 41 times
Been thanked: 10 times

Re: ...is this the uncrackable one?? (.za and .za2)

Post by Henchman800 » Sun Mar 22, 2020 11:17 pm

As far as models go, daemon1 already extracted them:
daemon1 wrote:
Sat Feb 15, 2020 1:12 pm
yes, there are 1520 files, and the models are very small and simple
Image
However I cannot..... :-/
I might give it another try with hex2obj. But since most character models have alot of submeshes it requires reading alot of different vertex start adresses.
Carnefil_3D-Model_Files.zip
Here are the .zm files (and .zm2 ?)for:
-Maries Axe
-Final Boss Character Model
-Acid Bottle (should be simple)
Image

So maybe you can give it a try yourself.
....or somebody skilled blesses us with a script <3
You do not have the required permissions to view the files attached to this post.

ddadd
beginner
Posts: 36
Joined: Fri Mar 20, 2020 1:58 am
Has thanked: 3 times
Been thanked: 1 time

Re: ...is this the uncrackable one?? (.za and .za2)

Post by ddadd » Sun Mar 22, 2020 11:41 pm

It's kind of funny, I actually redid alot of the models in my Carnevil fangame, but either way I'll give it a shot.

ddadd
beginner
Posts: 36
Joined: Fri Mar 20, 2020 1:58 am
Has thanked: 3 times
Been thanked: 1 time

Re: ...is this the uncrackable one?? (.za and .za2)

Post by ddadd » Mon Mar 23, 2020 1:29 pm

ZM are model raw data. Coordinates, normals, then faces with all UVs. As you could see, i made a test to check them, but it requires reading model infos from the GAME.EXE
So, I've tried running the GAME.EXE like he said, but I have found it is 16 bit and cannot run on my Windows 10. Can you open it? It was extracted with everything else so . . . .

daemon1
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2135
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 52 times
Been thanked: 1665 times

Re: ...is this the uncrackable one?? (.za and .za2)

Post by daemon1 » Mon Mar 23, 2020 1:43 pm

You dont have to run the exe. You just need to take submesh tables for each model. Number of faces/vertices etc. Since its hardcoded into it, i dont think theres a way to do this automatically. I can give a few examples where they are if you cant find them yourself.

ddadd
beginner
Posts: 36
Joined: Fri Mar 20, 2020 1:58 am
Has thanked: 3 times
Been thanked: 1 time

Re: ...is this the uncrackable one?? (.za and .za2)

Post by ddadd » Mon Mar 23, 2020 1:54 pm

Please do. I've tried opening them into notepad, to see if any info about their models was there, but to no luck.

ddadd
beginner
Posts: 36
Joined: Fri Mar 20, 2020 1:58 am
Has thanked: 3 times
Been thanked: 1 time

Re: ...is this the uncrackable one?? (.za and .za2)

Post by ddadd » Mon Mar 23, 2020 6:31 pm

Then we need to find a way to repackage textures and models, so we can make rom hacks/ mods

ddadd
beginner
Posts: 36
Joined: Fri Mar 20, 2020 1:58 am
Has thanked: 3 times
Been thanked: 1 time

Re: ...is this the uncrackable one?? (.za and .za2)

Post by ddadd » Tue Mar 24, 2020 2:05 pm

So, do you need to open the models in blender or something?
:? Like I said, I'm not very good with that kind of stuff.

Post Reply