Join also our Discord channel! Click here.

Noesis tutorial Basic Model

Read or post any tutorial related to file format analysis for modding purposes.
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 3158
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 850 times
Been thanked: 1726 times

Re: Noesis tutorial Basic Model

Post by shakotay2 » Thu Apr 02, 2020 12:22 pm

11H5 wrote:
Wed Apr 01, 2020 9:20 pm
maybe there's a plugin i can add to Noesis so it would work ?
Not to my knowledge. Last solution for sketchfab models I remember was from Szkaradek123, a blender 2.49b project (doesn't work with newest blender!): Blender249[sketchfab][htm][2019-10-16] (Maybe to be found on Zenhax, don't remember.)

Older/other version was Blender249[osgjs][2017-02-23].

fyi: discussion on xentax concerning leeching of commercial models has been stopped.
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."

RyanTroy
ultra-n00b
Posts: 2
Joined: Wed Mar 11, 2020 12:00 pm

Re: Noesis tutorial Basic Model

Post by RyanTroy » Sat May 02, 2020 12:49 pm

Thanks for the good tutorial, unfortunately I'm stuck when trying to get faces I get this error.

Image

I've attached the file and my script for reference.
mga_test.zip
You do not have the required permissions to view the files attached to this post.

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

Re: Noesis tutorial Basic Model

Post by shakotay2 » Sat May 02, 2020 1:49 pm

Which script example did you take as a base? Looks more complicated than needed -
maybe have a look at this one for example:
shakotay2 wrote:
Thu May 15, 2014 1:48 pm
Your example would work like so:

Code: Select all

   for i in range(0, FCount):
      #faces.append (bs.readBytes(6).decode('ascii').rstrip('\0'))
      f1 = bs.readUShort();f2 = bs.readUShort();f3 = bs.readUShort()
      faces.append(f1);faces.append(f2);faces.append(f3)
But it would require "old Noesis style"?, without "rapi", afair.

Code: Select all

		msh = NoeMesh([],[], "mesh" + str(meshCounter), "mat" + str(meshCounter))
		msh.setIndices(faces)
		msh.setPositions(verts)
		msh.setUVs(uvs)
		meshes.append(msh)
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."

RyanTroy
ultra-n00b
Posts: 2
Joined: Wed Mar 11, 2020 12:00 pm

Re: Noesis tutorial Basic Model

Post by RyanTroy » Sat May 02, 2020 2:42 pm

Thanks it worked, I followed this tutorial viewtopic.php?f=29&t=7760

Also how can I proceed if I have several files of the same type and the starting address of vertices keeps changing ? for example sometimes it's 0x3f sometimes 0x79 or 0x5d

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

Re: Noesis tutorial Basic Model

Post by shakotay2 » Sat May 02, 2020 3:49 pm

There's no general recipe, you can do a full format analysis, you can search for patterns, or for magic tables (containing counts and/or offsets).

An example for pattern search is to be found here (in case you find a pattern in .mga files)
shakotay2 wrote:
Sat Mar 07, 2020 8:29 am
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."

TheFalcon19
ultra-n00b
Posts: 4
Joined: Wed Sep 25, 2019 2:42 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Noesis tutorial Basic Model

Post by TheFalcon19 » Sat Jul 18, 2020 4:12 am

I can't figure out what I'm doing wrong, but I'm getting some misplaced vertices in Noesis.
The mesh is correct in Model Researcher and Mesh Reaper with the same data.

I'm using just the basic commands for vertex position:
VertexBuffer = bs.readBytes(VertexCount * 12)
and
rapi.rpgBindPositionBufferOfs(VertexBuffer, noesis.RPGEODATA_FLOAT, 12, 0)

Here I highlighted an example where in noesis those four bytes end up +16 compared to hxd.
Image

Dippergames420
ultra-n00b
Posts: 2
Joined: Fri Aug 23, 2019 1:42 am

Re: Noesis tutorial Basic Model

Post by Dippergames420 » Fri Oct 09, 2020 2:48 am

I've been trying to extract these for a while now, and all else has seemingly failed, so I've decided to ask for help here.

There have been a few threads related to the models from Dragon Ball Z Ultimate Tenkaichi over the years, due to Noesis crashing when trying to export from the .AFS file. I did try the plugin from revelation (viewtopic.php?p=61219#p61219) along with the default Noesis .AFS plugin, and AFSExplorer, only to get a mixture of blank files and the aforementioned Noesis crash.

If it's at all possible, is there a way to write a script to dig into archives? I'd like to write one of them so I can extract the files from the .AFS, or better decompile one of the empty files into something legible for revelation's plugin. An old thread has a DL for the .AFS, so here you go:

viewtopic.php?t=19077


And here's the blank files for UT's Goku in a ZIP archive, for context:

https://drive.google.com/file/d/198soxL ... sp=sharing

Any help is greatly appreciated!

Post Reply