[Release] shStudio 0.7.5

10/11/2014 15:12 castor4878#91
the index of a location / coordinates record has no meaning, you can have holes or duplicated values, it doesn't matter, they are displayed but don't exist in file.

the index of .smod (or .wav) is important and does matter.
each section contains a list of names (String255) where implicit identifier is the index in the list; then each coordinate record contains the index of a named item to which it applies.
consequently, if you delete one name (smod, ...) all coordinates with index higher than the deleted one will be corrupted; until significant changes (rewrite) of this, do *not* delete item (only delete coordinates if an item must no longer be in the field).

the item-bag list is postponed (the drag-manager of the tree-list must be recoded).

delete, delete an item, it removes it from its container list; all lists that support deletion (meaning models list, .itm, .mlt, .mon; coordinates or vertices records in .3D?, .WLD; etc) do not contain index fields; the displayed index of an item is simply its order in the file.
erase, erase an item, it fills it with null; it is mainly used with the item.sdata file that must always contains 255 items per bank. (255 consecutives items sharing the same Type value).
when the ps_game reads all items, it doesn't care about the read Type & TypeID, the item 3-4 is simply the 514th records returned by the base. it is so forbidden to make a hole and erase is used (can be used) to clear (forget) an item definition.

Edit: I feel it's be useful to insist on the consequences of deletion of an item.
as explained, all lists (but the item.sdata fil) contain items that don't store / define themselves an unique identifier (such as an unique name or unique numerical ident (GUID) or even a hash); instead the order of the item in its container-list defines its identifier; for instance the gears and the weapons of the items.sdata file define their models (the appareance of the gear or the weapon) by the index of that model in a .MLT or .ITM file.
this is obviously very very weak (the shaiya data organisation is not smart at all, that's not a surprise); if you delete an model from a .MLT list, the (effective) indexes of all subsequent models will be descreased by one when the game will load the list, and thus all gears using these indexes will be corrupted.
of course the same is true for the .MON lists; the deletion and insertion (as well as reordering) is possible in these lists but don't forget that such changes can impact all items using that list.
10/11/2014 16:01 _Diavolino_#92
thank you much to be clear and the brillant explanation.

Regards
10/12/2014 15:08 Tryne01#93
Hi !

i have a question : How could i add music (i wouldlike to add this song
in my 42.wld map) into a wld file without song file ? is it possible ? I've alrady trided by using hex editor but it crash with "sgraphic error..."

Thanks ;)
10/12/2014 17:01 _Diavolino_#94
Hello
@Tryne01
have you tried to do that method ? and using the right compression ?
[Only registered and activated users can see links. Click Here To Register...]
i was not yet imported new music with the tool but i know that the method propose is working.

Try and see :p
10/12/2014 18:16 Coolie_85#95
Didnīt work for Windos XP SP3 :(
10/12/2014 19:06 Truth1010#96
I would suggest looking at how music is defined in the WLD file of a map with music (35/Apulune for example) then try to insert the bytes/data where /how it is shown there.
You can view the music/sound ata with this release of ShStudio.

A quick extra note on that for Castor. You seem to have gotten the titles of "music" & "Sounds" reversed in the WLD files.

What would be music is listed under the title 'sound' and what would be sounds (ambient) is listed under 'music'
Not sure if this was intentional, just noticed it :)
10/12/2014 19:21 .-V-.#97
Quote:
Originally Posted by Truth1010 View Post
Double post due to lag - please delete :)
Hi,
u Can Delete Ur Own Posts By Simply Going To The 'Edit'' Option > Delete.
More Info @ [Only registered and activated users can see links. Click Here To Register...].
Hope This Help's.

;)
10/12/2014 20:57 castor4878#98
Quote:
A quick extra note on that for Castor. You seem to have gotten the titles of "music" & "Sounds" reversed in the WLD files.
Music, Sounds, Noise or ... thing, my vocabulary doesn't make the diff; sole fact, one list must contain files from the "Sound/back" folder and the other files from "Sound/Music"; it appears that the current release uses the "Music" folder for both, there is a bug; may be I should change the caption to "Back" (or "background") and "Music" to avoid (self) confusion.
10/12/2014 21:36 Truth1010#99
Ah i see, well makes sense if it's just made like that in the current releases :)
I wasn't saying it was a big issue, doesn't affect anything, just didn't know if you made it that way on purpose or if there was another reason to it :)
10/12/2014 21:47 castor4878#100
Quote:
Originally Posted by Coolie_85 View Post
Didnīt work for Windos XP SP3 :(
true, due to the lack of definition of SHCreateItemFromParsingName in shell32.dll rel 6.0.2900 (this function is introduced in shell32 6.1.76 and is required to convert into strings the stupid IShellItems - of the very stupid FileOpen/SaveDialog interfaces.

dynamic binding & use of former APIs will be used in next release.

edit: meantime, you must use [Only registered and activated users can see links. Click Here To Register...] that does work on XP.
10/13/2014 09:22 Coolie_85#101
I checkt and tested.. The old versons from SHstudio donīt work too.

Sorry for my bad english :D
10/13/2014 18:08 ilie321#102
hey cant save itm files with 7.5 :( after edit it says dirty i save it if i want to close the interface for itm it ask me to save again and again and nothing happends. if i reopen the file the item is there but if i close the workspce it dissapear. win7 x64 here ep4.5
thank you

7.1 works ok
10/13/2014 23:14 castor4878#103
Quote:
cant save itm files with 7.5
indeed, thank for report.
only .ITM models have this bug (that applies on both save & save as, it's the streaming itself that was left commented !...); .ALT, .MLT, .MON & .MLX process finely.
10/14/2014 11:47 _Diavolino_#104
Hello,
@Castor,
When i want to use the sql file generated by the tool from monster.sdata+exdata, it appear one error of Object ^^

I am not an expert in mssql, but i think it should point the Full name of database as "[PS_GameDefs].[dbo].[Mobs]" and not only "[Mobs]" or at least to declare the Database by 'use' if not i get name Name of the Object is not Valide. (under mssql 2012)
Test : working with add of USE [PS_GameDefs] GO and similar for dropeitems.
Any other problem detected Work Perfect with monsters

ps:does it possible to use direcltly the folder 3DC ANI DDS from monster of os ? because i tested like that and game data load error in charging toon... Thanks much its possible yes ^^ the error was coming from .mon monster and should be convert in right format :)
10/14/2014 18:38 Tryne01#105
@_Diavolino_

Yeah i know how to import .wld into my archive but i don't know how to make my wld map able to read it (if the map have not .wav file already into)

I have already seen the definition in wld file and test edit wld file myself but it don't work, i'm not a programmer so i wan't some help..

Is it realy possible ?