Join also our Discord channel! Click here.

Sudden Attack - Noesis Script Creation

Post questions about game models here, or help out others!
User avatar
Acewell
VIP member
VIP member
Posts: 1287
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2436 times
Been thanked: 753 times

Re: Sudden Attack - Noesis Script Creation

Post by Acewell » Sun Mar 19, 2017 6:20 pm

okay i updated the script with a quick fix, it may or may not break other models, if it does just comment out lines 34-37 and shift+tab line 38. :D
the stride was 1 byte off and the submesh headers had an extra 2 bytes in the last 2 samples. :scaredy:
Last edited by Acewell on Sun Mar 19, 2017 7:43 pm, edited 1 time in total.

TRDaz
mega-veteran
mega-veteran
Posts: 204
Joined: Sat Sep 24, 2011 7:06 pm
Has thanked: 67 times
Been thanked: 24 times

Re: Sudden Attack - Noesis Script Creation

Post by TRDaz » Sun Mar 19, 2017 7:09 pm

Works great :D Thanks!

WPH93
n00b
Posts: 17
Joined: Sun Feb 12, 2017 5:31 pm
Been thanked: 1 time

Re: Sudden Attack - Noesis Script Creation

Post by WPH93 » Thu Mar 23, 2017 3:15 pm

shakotay2 wrote:Is #rapi.rpgBindUV1BufferOfs() still commented out in your code?
delete the # then (which disables the line from being "executed", so it's just a comment)

I'd suggest to read chrrox' Noesis tutorial to gain more understanding
otherwise you'll fall from one trouble into the other, I guess.

did you follow mariokart64n's tutorial?
" msh.setIndices(ltb.faceArray)"
" msh.setPositions(ltb.vertArray)"
is a little bit uncommon to me (doesn't seem to be part of the rapi.rpg interface)

You might be required to use self.setUVs([]) to get the uvs.
QuickBMS can not extract .rez [roll] How could I extract it,plz.

Xr79
advanced
Posts: 57
Joined: Sat Oct 05, 2013 11:45 pm
Has thanked: 6 times

Re: Sudden Attack - Noesis Script Creation

Post by Xr79 » Sun Feb 24, 2019 9:31 pm

Acewell wrote:
Sun Mar 19, 2017 6:20 pm
okay i updated the script with a quick fix, it may or may not break other models, if it does just comment out lines 34-37 and shift+tab line 38. :D
the stride was 1 byte off and the submesh headers had an extra 2 bytes in the last 2 samples. :scaredy:
Hey Acewell, I know this is an old post, I wanted to thank you for your work on the script! seriously it's awesome, there are Kpop stars in the sudden attack files and I really wanted to get the models.
but I've run into a bit of a problem. I followed your directions on commenting your script and then none of the models will open, the script compiles and works but none of the models open any more. are you sure you got the right lines to comment out there?
here is an example of one of the files that does not work with your script.
i managed to get all the files from the game even tho it's shut down for some reason you can download it on the korean site.
thank you in advance if you can offer any help with this.

User avatar
Acewell
VIP member
VIP member
Posts: 1287
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2436 times
Been thanked: 753 times

Re: Sudden Attack - Noesis Script Creation

Post by Acewell » Mon Feb 25, 2019 8:44 am

Xr79 wrote:
Sun Feb 24, 2019 9:31 pm
are you sure you got the right lines to comment out there?
that is a question you should probably ask yourself. :D
here is an example of one of the files that does not work with your script.
i can't see invisible samples, maybe you forgot to link it?
i don't really think there is much more i can do with this game model format.

i don't do much with model scripts any more anyway because i have
a large backlog of texture samples from many other topics to examine
and i plan to get most of them out of the way this year. :D

Xr79
advanced
Posts: 57
Joined: Sat Oct 05, 2013 11:45 pm
Has thanked: 6 times

Re: Sudden Attack - Noesis Script Creation

Post by Xr79 » Mon Feb 25, 2019 9:32 pm

Acewell wrote:
Mon Feb 25, 2019 8:44 am
Xr79 wrote:
Sun Feb 24, 2019 9:31 pm
are you sure you got the right lines to comment out there?
that is a question you should probably ask yourself. :D
here is an example of one of the files that does not work with your script.
i can't see invisible samples, maybe you forgot to link it?
i don't really think there is much more i can do with this game model format.

i don't do much with model scripts any more anyway because i have
a large backlog of texture samples from many other topics to examine
and i plan to get most of them out of the way this year. :D
If I'm being honest I wasn't expecting you to take the time to message me back, I thought it was just a shot in the dark. there was a problem sharing the sample, it's to big and all my online store are full right now.
but maybe you could show what lines to comment out? I did 34-37 and shift tabbed 38 like you said to, but it didn't work. I use note pad ++

34 if vertex_stride == 31:
35 vertex_stride = 32
36 bs.seek(0x18, NOESEEK_REL)
37 else:
38 bs.seek(0x16, NOESEEK_REL)

User avatar
Acewell
VIP member
VIP member
Posts: 1287
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2436 times
Been thanked: 753 times

Re: Sudden Attack - Noesis Script Creation

Post by Acewell » Tue Feb 26, 2019 5:15 am

yes those are the correct lines. :)
when i say comment them they will result to look like this:

Code: Select all

# if vertex_stride == 31:
    # vertex_stride = 32
    # bs.seek(0x18, NOESEEK_REL)
# else:
bs.seek(0x16, NOESEEK_REL)
the indent of line 38 is critical, this might be where it breaks for you.
line 38 should be indented the same as line 33.
if it still doesn't work with your sample then it just doesn't work.
there is no guarantee the script works with all game samples.

Post Reply