SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SHIII Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=195)
-   -   Tutorial on how to clone objects by Chris aka Orzel (https://www.subsim.com/radioroom/showthread.php?t=82310)

Jace11 07-19-05 04:06 PM

I guess Net Framework is like Java then or VB, I need an end user version to run Lurbz application?

Ill have a look for it..

Jace11 07-19-05 04:08 PM

its seems very big file and i'm on slow modem, any chance you could run the tool using the Evarts class, and post me the IDs it produces.. :)

Rubini 07-19-05 05:04 PM

Jace,

Yes it's a big file. I find it (and download&install) at microsoft update site. I think that you have to look at lubz dat tool by your self because it's really a good thing. I don't have time now, but if you really need it I will look in Evarts class to you.

Rubini.

Jace11 07-19-05 08:41 PM

oh well, i'll leave it till Chris finishes his editor. I now understand how to do it, just need better tools.

Also, what about text strings, unit names that appear in the dat, sim etc? I noticed in the Southampton mod, names are changed from "Fiji" to "Town" INSIDE the dat file. Can you rename like that if Name length differs or not? Do you need to do anything else?

Shadow9216 07-20-05 06:29 AM

Well, I can't figure out what I did wrong. I used the dat convert tool to look at all the codes for the Liberator, made a nice spread sheet, then changed the hex codes. Next I did a find and replace using 010 editor, changing all the codes from the old value to my new value. I looked for recurrences of code strings from the dat file in the sim, dsd, and zon files, changing those. Finally I copied the Liberator.tga in tlowres and changed the name to my new file.

Loaded the game, loaded museum, it gets halfway across and freezes. Previously, I got the museum to load and work until I clicked on my clone, when it would crash; now it won't even load.

I think I'm on the right track, but it's hanging up somewhere. Here's my questions:

1) Do I need to change the name from Liberator to Privateer (my clone) in the dat file? Where it says Liberator_small_wing for example, does that need to become Privateer_small_wing?

2) Do I change the chunk id in the zon/sim/dsd, or just those id strings common to the dat file?

3) Does it matter how much of the string I change, or what I change it to? If the string is E3 65 A1 B0 DD 67 00 C5, does F4 56 A2 B0 DD 67 00 C4 work, or do I need to change more/less?

4) For files that change only one character, should I keep the change the same across the board? Using my above example, if 5 files differed merely by one character (in the same position), should I use my changed string, modifying that one character, for each?

Jace11 07-20-05 06:57 AM

Not really qualified to say, as I havent done it successfully yet, but,

Should be ok to rename, serg did it in his files. Same length name so find and replace should work. If you rename the tga in the dat, you have to rename the tga in the texture folder too then. Or if you are importing the tga "INTO" the dat, probably need to get name and file size right.

As I believe the goal is uniqueness for each ID, need to change more than one character I think to be safe.

Shadow9216 07-20-05 07:15 AM

http://home.comcast.net/~yoda9216/liberator_dat.xls
http://home.comcast.net/~yoda9216/Image3.jpg

Here's what I tried to do. First one to fix my screwup gets a steak dinner (must travel to Baltimore to redeem prize).

Rubini 07-20-05 09:17 AM

Shadow,

After make a comparative with THE_Orzel first post and the Stuka dat file using the dat tool I think that is easy to do and find what to change, because these two are planes and the structure of the files are the same. Then make the comparative stuff and the things will be more clear to you.

If I have some time I will try it with you.

Rubini.

THE_ORZEL 07-20-05 09:25 AM

Shadow from what I can see if I’m not mistaken. From your pic do you mean to say that you replaced?

E3 17 79 34 F6 ED 5B 86 (id) and 00 00 00 00 00 00 00 00 (this doesn’t count an empty tag) and D0 F5 B6 D1 1D A1 EC 9C and AA 9C D0 07 98 80 02 81 you replaced it with this F3 17 79 34 E6 ED 5C AE

If you did that you did it wrong! This is what I’ve been talking about. Guys I will use this above example to finally explain it to you.

E3 17 79 34 F6 ED 5B 86 this is one of multiple id’s in the dat file needs to have unique id !

00 00 00 00 00 00 00 00 This ignore it .

D0 F5 B6 D1 1D A1 EC 9C This is another id and it may have as many as 20 such id’s in the dat file needs unique id

AA 9C D0 07 98 80 02 81 This needs to be replaced with unique id

Now what you did it Shadow is you’ve just made a very strong tequila shot but not unique clone object. You made it worse than it was, it will never work that way.

If you want I can post all the strings from the liberator for you to replace.

Chris a.k.a. Orzel

Shadow9216 07-20-05 09:34 AM

Yeah, that occurred to me as well...here's my results:

Copied ORZELs strings as he posted them. Changed them by a one up system (ie: AE 5F 09 becomes BF 6A 10). Used the 010 editor to find and replace the originals with the new ones I created.

First attempt:
Copied ADBJU87Stuka to DBJU87Stuka, changed file names from ADBJU87Stuka.dat to DBJU87Stuka.dat, etc. Changed all character strings. Edited en_names, roster/german/air to include DBJU87Stuka. Result: CTD

2nd attempt: Changed all instances of JU87Stuka to JU87Sturmvogel, all other steps same as previous.
Result: CTD

3rd attempt:
Same as 2nd attempt, but left JU87Stuka.tga in the JU87Stumvogel.dat file, all other steps as in 2 (above)
Result: CTD

I'm running out of ideas. Even Ghandi would be saying "I'm starting to get seriously p*ssed here!"

Help me Orzel-Wan Kenobi! You're my only hope.

What am I missing here? I see the following things that are variables:

a) The hex strings themselves. These need to be changed to something new.
b) References in the dat/sim/dsd/zon to the old model, ie: B24engine (a sound file), JU87Stuka.tga (image file), etc.
c) The names of the modifies files themselves- do they need a completely new name?
d) The cfg file in the country roster- this seems pretty minor
e) The en_names/ge_names which list the model- again pretty minor.

What am I missing? :damn: :damn: :damn:

THE_ORZEL 07-20-05 09:41 AM

Shadow did you read my post above yours?

You only need to change 1 number from the original string to make it work example below

11 22 33 44 55 66 77 88 TO 01 22 33 44 55 66 77 88

Of course there is slight one in a million chances that other people may have the same string so you may change more than one number to be on a safe side for future mod.

Chris a.k.a. Orzel

Shadow9216 07-20-05 09:49 AM

We must've cross-posted. :D
Sorry, should've explained my diagram- the column on the left ONLY was replaced by the column on the right. thus:
E3 17 79 34 F6 ED 5B 86
was replaced by
F3 17 79 34 E6 ED 5C AE

That was all I replaced. The chart was just for me to try and figure out what was what and where...I understand what you mean and what needs to be changed.

So, knowing that I've ONLY changed the id, what am I doing wrong?

THE_ORZEL 07-20-05 10:02 AM

Revised and complete listing of ids for Stuka

1. 8869450B8E80A380 TO NEW ID DAT

2. F4FA7906E081B680 TO NEW ID DAT

3. 1E63F9A00B610281 TO NEW ID DAT

4. F25FC8A00B610281 TO NEW ID DAT

5. D0417C06E281B680 TO NEW ID DAT

6. FBBD64BACCD0A79B TO NEW ID DAT

7. FBBD6452CCD0A79B TO NEW ID DAT

8. FBBD64DACCD0A79B TO NEW ID DAT

9. 2AAC52A00D610281 TO NEW ID DAT

10. 0924A8DED7C4FD03 TO NEW ID DAT, ZON

11. 6B1EFC0C0B271556 TO NEW ID DAT, SIM

12. 751EFC0C0B271556 TO NEW ID DAT, SIM

13. FCB36419EC600281 TO NEW ID DAT

14. F0119384A820D29C TO NEW ID DAT

15. FD3FC21854EC288A TO NEW ID DAT

16. CA15BDAF49EB0B4E TO NEW ID DAT, ZON

17. 36D3234A56EC288A TO NEW ID DAT

18. 34D3234A56EC288A TO NEW ID DAT

19. 37D3234A56EC288A TO NEW ID DAT

20. ACBB7A06E781B680 TO NEW ID DAT

21. 0CD4420B8480A380 TO NEW ID DAT

22. 0CB97906E781B680 TO NEW ID DAT

23. 2A6E63E5F7808481 TO NEW ID DAT

24. 6936289D54589D8A TO NEW ID DAT

25. 4E105E2CD38A05C6 TO NEW ID DATA, ZON

26. EAF9EA9E01610281 TO NEW ID DAT

27. C0789484AB20D29C TO NEW ID DAT

28. A0699484AB20D29C TO NEW ID DAT

29. 3130D962ED2A7614 TO NEW ID DAT, SIM

30. B0AA7245EF6BE2FE TO NEW ID DAT, ZON

31. D8CB83B4DA006BA2 TO NEW ID DAT

32. 085C7A06EB81B680 TO NEW ID DAT

33. 5289683E9669C502 TO NEW ID DAT, ZON

34. 5F56FCDDD2CE1FC2 TO NEW ID DAT

35. A2080A9F05610281 TO NEW ID DAT

36. 70477A06ED81B680 TO NEW ID DAT

37. 318744DDDFD33635 TO NEW ID DAT

38. F18644DDDFD33635 TO NEW ID DAT

39. 28EB9384A020D29C TO NEW ID DAT

40. B18644DDDFD33635 TO NEW ID DAT

41. 718644DDDFD33635 TO NEW ID DAT

42. B17A9B754F2AAC4E TO NEW ID DAT

43. 9C28470B8B80A380 TO NEW ID DAT

44. 718744DDDFD33635 TO NEW ID DAT

45. 0AAB53B1A328162C TO NEW ID DAT

46. F836293DBF589F8A TO NEW ID DAT, ZON, SIM, DSD

47. E0449484A220D29C TO NEW ID DAT

THE_ORZEL 07-20-05 10:04 AM

Shadow try Stuka and replace all of those strings. See if that works for you keep trying.

Chris a.k.a. Orzel

Shadow9216 07-20-05 12:57 PM

Nope, still crashes...
Here's what I did:
Took your values and pasted them into my spreadsheet. I could see there were many strings which didn't overlap, and after searching with lubz's tool, I figured out most of them were the 3D Id number. There were 4 strings which I couldn't identify though.

Anyway, went into the 010 editor and replaced the stock values with new values. So I've got a folder in Data/Air named DB_JU87, filled with files called DB_JU87. Now what? What changes do I need to make to the EnglishNames file and the Roster/German/Air folder?

Rubini 07-20-05 01:10 PM

Shadow,

When using dat tool you may notice that some ID (about Chris post) are in "txtrref" box. And they need to be change too.

Rubini.

Shadow9216 07-20-05 01:12 PM

Thanks, got those. These are the ones I can't equate:
9C 28 47 0B 8B 80 A3 80
0C D4 42 0B 84 80 A3 80
2A 6E 63 E5 F7 80 84 81
D8 CB 83 B4 DA 00 6B A2

They show up as part of the dat file when you search in 010, but I couldn't tell you what they are. I can pretty much identify what the components are now for the file, but these 4 are a mystery. Not found in ID, Parent, txtref, or 3D. Nothing for Node Label either.

THE_ORZEL 07-20-05 01:16 PM

Create DB87Stuka.cfg in any country that you want to use it like this;

[UnitClass]
ClassName=DBJU87 <=must match with DB_87Stuka.cfg in Air folder
UnitType=302
AppearanceDate=19370101
DisappearanceDate=19480101
DisplayName=PO DB Ju-87

[Unit 1]
Name=PO DB Ju-87
DOC=19370101
DOD=19480101


Now make modification in DB_87Stuka located in
C:\Program Files\Ubisoft\SilentHunterIII\data\Air\DB_JU87

Example:

[Unit]
ClassName=DBJU87 <==same as in roster for given country
UnitType=302
MaxSpeed=255.000000
MinSpeed=70.000000
MaxRadius=750
Length=11.5
Width=13.8
RenownAwarded=50

[Loadout 1]
Name=3x500Kg Bombs
Type=3

[Loadout 2]
Name=5x250Kg Bombs
Type=2


Chris a.k.a. Orzel

Rubini 07-20-05 01:33 PM

Shadow,

You are rigth, they are not there in dat file. (I don't look in the zon sim dsd, but the dat file may have all the IDs...). Perhaps Chris have make a mystake here.

Rubini.

Shadow9216 07-20-05 02:21 PM

Okay Orzel, got it to work...I now have a Stuka flying for Poland :P

But I'm confused- how is what I just did different from adding a copied cfg into a country folder WITHOUT changing the values? I've already given Brazil and Mexico PBYs and B-24s just by copying the cfg from the American folders. They display in the museum, doesn't seem to be a problem. Can you shed some light on this?

What I'd like to do is create a new version of the B-24, the PB4Y-1. This was a US Navy version- my goal is to do up a nice skin for one of the squadrons and place it at a historic base (right now I'm looking at Morocco, post-Torch).

Long term would be to modify the existing model by adding the blisters from the PBY and the vertical tail from the Sunderland (if this is even possible) to create the PB4Y-2 Privateer.

Your tutorial is obviously a step in the right direction and I appreciate your hard work and patience. If you can just help me understand the process a bit more, I'll be a truly happy camper.


All times are GMT -5. The time now is 11:50 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.