XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Fri Mar 24, 2017 1:20 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1758 posts ]  Go to page Previous  1 ... 111, 112, 113, 114, 115, 116, 117, 118  Next
Author Message
 Post subject: Re: Spotlight: Señor Casaroja's Noesis
PostPosted: Sun Feb 07, 2016 12:39 am 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 699
Has thanked: 1554 times
Have thanks: 346 times














You can make the ads go away by registering

Thanks for replying, the idea of a GUI that mimics TextureFinder in Noesis sounds cool and convenient but i don't think it will ever happen because someone would have already done it by now. I am not a programmer and have no idea where to go here, i was hoping you could fix my example above so it works, i would settle for changing values in the script and reloading it each time just to keep things simple. :oops:

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
 Post subject: Re: Spotlight: Señor Casaroja's Noesis
PostPosted: Sun Feb 07, 2016 4:17 am 
Offline
Moderator
User avatar

Joined: Mon Mar 23, 2009 2:57 am
Posts: 1002
Has thanked: 44 times
Have thanks: 465 times
AceWell wrote:
i don't think it will ever happen because someone would have already done it by now.

This is the seed of motivation that spurs mankind's progress throughout history. The burning desire and unstoppable drive to look at something as impossible, then ask some other dude to do it.


Top
 Profile  
 
 Post subject: Re: Spotlight: Señor Casaroja's Noesis
PostPosted: Sun Feb 07, 2016 4:42 am 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 699
Has thanked: 1554 times
Have thanks: 346 times
i think there is a misunderstanding here :)
i never asked for anyone to rebuild Texture Finder in Noesis, i just requested help with two things
1. to assist Wobble with expert help in unswizzling x360 textures from SWBF3.
2. to help me debug my example script so it works the way i have it commented, in a universal way.

If anyone else here can help with either of these, please post away! :D

edit
nevermind i figured out both problems. :D

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Last edited by AceWell on Mon Feb 08, 2016 9:47 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Spotlight: Señor Casaroja's Noesis
PostPosted: Mon Feb 08, 2016 5:35 am 
Offline
Moderator
User avatar

Joined: Mon Mar 23, 2009 2:57 am
Posts: 1002
Has thanked: 44 times
Have thanks: 465 times
1. Regarding that, Noesis gives you the functions you need and lots of example uses. So use them! It's not like you're going to find a special snowflake case unless they did some Crunch-like implementation. Either it's DXT or it's raw, and either it's endian-swapped or it's not, and you just need to take care to obey platform padding/alignment (on a per-row/block-row, per-mip, and/or per-face basis) beyond that. Using an untiling implementation that isn't broken as shit is a good idea too, which Noesis gives you.
2. It's misleading to ask someone for "help debugging", as this implies you actually wrote something or just need a tiny thing fixed for you to pick it back up yourself, when you actually more or less just copy-pasted some code from somewhere else and thought it might do something like what you want. It's fine if you can't program, but there's a big difference between "help me write this" and "write this for me". When someone says the former while reality dictates the latter, it's really irritating, as it does not give the sucker an accurate representation of the work they're getting themselves into by "helping".

If anyone wants to be the monkey here, he's asking for someone to create a big set of options to expose decoding methods for raw image data using every possible format/tiling/twiddling/etc. mode he might want to try, and if you want you can expose that through some shitty script variables at the top instead of writing some GUI code. This is likely to be a 30-60 minute task if you have some idea of what you're doing already. I'm not the monkey, too many things on the laundry list that time would be better-spent on.


Top
 Profile  
 
 Post subject: Re: Spotlight: Señor Casaroja's Noesis
PostPosted: Mon Feb 08, 2016 11:44 am 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Tue Jan 04, 2005 9:47 pm
Posts: 585
Has thanked: 43 times
Have thanks: 112 times
[out]


Last edited by Wobble on Sun Mar 12, 2017 10:55 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Spotlight: Señor Casaroja's Noesis
PostPosted: Wed Feb 10, 2016 10:21 pm 
Offline
Site Admin
User avatar

Joined: Wed Jan 15, 2003 6:45 pm
Posts: 4005
Location: Dungeons of Doom
Has thanked: 407 times
Have thanks: 541 times


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Please like our Facebook page!


Top
 Profile  
 
 Post subject: Re: Spotlight: Señor Casaroja's Noesis
PostPosted: Thu Feb 11, 2016 6:16 pm 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Tue Jan 04, 2005 9:47 pm
Posts: 585
Has thanked: 43 times
Have thanks: 112 times


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: Spotlight: Señor Casaroja's Noesis
PostPosted: Thu Feb 25, 2016 4:02 pm 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Tue Jul 20, 2010 2:08 am
Posts: 340
Has thanked: 13 times
Have thanks: 20 times
I recently rendered a 16-bit greyscale PNG with 3DS Max, but when I loaded the image into Noesis, the areas looked all jagged and distorted, like if you tried to film a monitor and the diagonals would overlap. I think it may not be programmed to properly handle those kinds of PNGs.

_________________
BBSFM and KH2FM+ saves are compatible with KH2.5. http://forum.xentax.com/viewtopic.php?t=13424


Top
 Profile  
 
 Post subject: Re: Spotlight: Señor Casaroja's Noesis
PostPosted: Sat Feb 27, 2016 11:35 pm 
Offline
beginner

Joined: Sun Oct 18, 2015 8:46 pm
Posts: 31
Has thanked: 7 times
Have thanks: 19 times
Hi it's me again.

So I took your advice, in case I was "feeling adventerous" and am right now trying to implement a plugin that reads the dark souls hkx animations (in c++), since someone was so kind as to send me a copy of a havok sdk version.

My plugin makes noesis crash though whenever I try to call havok code, I submitted a couple of crash reports after a day of tinkering.

I've noticed havok refuses to compile without 8 bytes struct member alignment... could that be part of the problem?

Unrelated to havok:
Is it possible to just load a skeleton without mesh data? I'd like to be able to do that, meaning parse a skeleton file when an animation is opened for preview, show the skeleton + animation, and be able to export that (which would also allow batch processing), but noesis asks me whether I'd like to export the file.

note: I may try exporting the animation data as xml and parse that if it doesn't work directly, but perhaps you may have some ideas as to what I can try to get havok and noesis to play ball.


Top
 Profile  
 
 Post subject: Re: Spotlight: Señor Casaroja's Noesis
PostPosted: Sun Feb 28, 2016 3:44 am 
Offline
Moderator
User avatar

Joined: Mon Mar 23, 2009 2:57 am
Posts: 1002
Has thanked: 44 times
Have thanks: 465 times
Default struct alignment doesn't matter, since there are pragmas around any shared structures that need alignment to be consistent. So that's not your problem.

As I can see in your crash report, the crash is in your code, and not Noesis:

0x0fa011fa (<unknown>@0x00000000, offset 0x11fa) - D:\Downloads\noesisv4169\plugins\darkdouls_hkx.dll

It's just that the Noesis exception handler is picking it up. You could single-step through your code up to the crash, or you can look at the crash report Noesis gives you. (it tells you the path to the dump before you send it off to me) As you can see, the offset into your module code is 0x11fa. If you're generating an address map (see Linker->Debugging->Generate Map File in your project settings) you can figure out which function the crash is in by using this address, and further narrow down where in the function the crash is by relating the disassembly of the function, getting the difference between 0x11fa and the base address of the function.

It's probably easier for you to just step through the code in debug yourself to figure out where you're crashing.


Top
 Profile  
 
 Post subject: Re: Spotlight: Señor Casaroja's Noesis
PostPosted: Sun Feb 28, 2016 10:43 am 
Offline
beginner

Joined: Sun Oct 18, 2015 8:46 pm
Posts: 31
Has thanked: 7 times
Have thanks: 19 times
Thanks for that explanation, I didn't understand really well what I could do with the crash report before!

There's only one line it could crash one, which is one calling havok code I have no access to (instantiates a hkLoader class)... (uncommenting works)

What I'm more interested in though:

Snaz wrote:
Is it possible to just load a skeleton without mesh data? I'd like to be able to do that, meaning parse a skeleton file when an animation is loaded, show the skeleton + animation, and be able to export that (which would also allow batch processing), but noesis asks me whether I'd like to export the file?


Do I simply add one random triangle to the model or is there a way to do this without that?

Thanks for taking the time <3


Top
 Profile  
 
 Post subject: Re: Spotlight: Señor Casaroja's Noesis
PostPosted: Sun Feb 28, 2016 2:38 pm 
Offline
Moderator
User avatar

Joined: Sun May 18, 2008 3:01 pm
Posts: 2388
Has thanked: 56 times
Have thanks: 1117 times
i use this
def sksvmodLoadModel(data, mdlList):
ctx = rapi.rpgCreateContext()
sksv = sksvFile(NoeBitStream(data))
sksv.loadAll(sksv.bs)
try:
mdl = rapi.rpgConstructModel()
except:
mdl = NoeModel()
mdl.setModelMaterials(NoeModelMaterials(sksv.texList, sksv.matList))
mdlList.append(mdl); mdl.setBones(sksv.boneList)
return 1


Top
 Profile  
 
 Post subject: Re: Spotlight: Señor Casaroja's Noesis
PostPosted: Mon Feb 29, 2016 5:45 am 
Offline
beginner

Joined: Sun Oct 18, 2015 8:46 pm
Posts: 31
Has thanked: 7 times
Have thanks: 19 times
Thanks! I got it to work in the end, although it kept crashing at export, (opening went just fine). Went with a converting path so the plugin wouldn't have to call havok code.

This is the result if anyone cares;

hkx converter to (custom) xml (.damnhavok actually) supports up until version hkx 2012.2 files binary packfiles, also noesis plugin viewing/exporting converted xml files, github release (as well as code):

https://github.com/Danilodum/dark_souls_hkx/releases

credits to Highflex and Figment for deciphering havok (github repos hkxcmd and havok2fbx)

Question:

What should the runtime library be for noesis plugins? Right now it is /MD like in unrealengine2_psk_psa, hope that's okay


Top
 Profile  
 
 Post subject: Re: Spotlight: Señor Casaroja's Noesis
PostPosted: Mon Feb 29, 2016 6:56 am 
Offline
Moderator
User avatar

Joined: Mon Mar 23, 2009 2:57 am
Posts: 1002
Has thanked: 44 times
Have thanks: 465 times
There's no good reason for Havok calls inside Noesis to crash. It could be that Havok is trying to try-catch an actual access violation and Noesis gets upset about that, but that would be pretty wretched of Havok. I know there are also all kinds of problems with Havok throwing floating point exceptions, but I don't think that's happening for you based on the exception code. I could potentially give a hook to disable the Noesis exception handler (or rather, force the filter to pass), although that seems especially ugly when the exception it's catching is an access violation.

/MD will work fine, but does rely on the user having the appropriate runtime on their system for the plugin DLL to load. You can use /MT if you want to just statically link the runtime, which will bloat the size of your DLL quite a bit. I usually statically link when it comes to major components. There are various downsides to statically linking the runtime, but most of them are outweighed by being able to guarantee something won't be happenstancely screwed up by problems with the user's installed runtime.

I'll add looking into making Havok calls from a plugin DLL to the todo list, although I'm in the middle of a gigantic task and don't expect to get to a new release for another month or two.


Top
 Profile  
 
 Post subject: Re: Spotlight: Señor Casaroja's Noesis
PostPosted: Mon Feb 29, 2016 7:10 am 
Offline
beginner

Joined: Sun Oct 18, 2015 8:46 pm
Posts: 31
Has thanked: 7 times
Have thanks: 19 times
To clarify: Loading a model actually works, that is in loadmodel, havok code is called, that reads a file, is used to extract its contents and convert into matrices. Also this has nothing to do with the previous crash I was getting.

It is puzzling to me however why the same dll (same code) can load a model just fine, but crash when trying to export it? ( I was able to export from preview, but not directly off a file)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1758 posts ]  Go to page Previous  1 ... 111, 112, 113, 114, 115, 116, 117, 118  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: cesm20 and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group