Staredit Network > Forums > Modding Discussion > Topic: Expanding DAT files
Expanding DAT files
May 22 2016, 6:00 am
By: O)FaRTy1billion[MM]  

Jan 3 2017, 2:29 am O)FaRTy1billion[MM] Post #21

👻 👾 👽 💪

datcc is a command-line program, you have to run it in command prompt with commands similar to the ones in the previous post



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jan 3 2017, 6:16 am Wertyu Post #22



Farty, before anything my apologies for the ignorance. Thousands of thanks for the software!!!!



"Colonel Tom Kazansky was the best Wraith pilot in the Terran Dominion"

Emperor Arcturus Mengsk :horde:

Jan 3 2017, 8:39 am O)FaRTy1billion[MM] Post #23

👻 👾 👽 💪

Now I just need to finish it :P



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jan 5 2017, 4:33 am Zoko-TkZ Post #24



I decompiled/recompiled sprites.dat extended to 550, added entries in the Datedit Data folder and changed the size in the def file. Looked in the origins file but didn't see anything relating to sprites.

On opening Datedit an error comes up, saying that the default sprites.dat is not a valid dat file, when the tab is selected the same error comes up along with two access violation errors. Every sprite entry loads up blank although I can see the extra spots that were put in.

I'm going to go back to defaults and give it another try, but if anyone might know what is wrong I'd appreciate the help.



None.

Jan 5 2017, 7:06 pm O)FaRTy1billion[MM] Post #25

👻 👾 👽 💪

I just tried it and got it to work.

Here is everything I did:

- DatCC commands:
Code
datcc -d -s -n 550 .
datcc -c -s -n 550 -e sprites.ini


- Copied the resultant sprites.dat into DatEdit\default\

- Edited DatEdit\Formats\Sprites.def: changed InputEntrycount and OutputEntrycount to 550, then deleted 1VarStart=130, 4VarStart=130, and 5VarStart=130 (somewhere along the line it was decided that extended dat files should have all properties for all entries -- my guess is this what was likely missed).
Here is the complete sprites.def I have:
Code
[HEADER]
Varcount=6
InputEntrycount=550
OutputEntrycount=550

[FORMAT]
0Name=Image File
0Size=2

1Name=Health Bar
1Size=1

2Name=Unknown2
2Size=1

3Name=Is Visible
3Size=1

4Name=Sel.Circle Image
4Size=1

5Name=Sel.Circle Offset
5Size=1


- And then added 33 entries to Datdit\Data\Sprites.txt:
Code
Sprite 517
Sprite 518
Sprite 519
Sprite 520
Sprite 521
Sprite 522
Sprite 523
Sprite 524
Sprite 525
Sprite 526
Sprite 527
Sprite 528
Sprite 529
Sprite 530
Sprite 531
Sprite 532
Sprite 533
Sprite 534
Sprite 535
Sprite 536
Sprite 537
Sprite 538
Sprite 539
Sprite 540
Sprite 541
Sprite 542
Sprite 543
Sprite 544
Sprite 545
Sprite 546
Sprite 547
Sprite 548
Sprite 549

(if you open in Notepad and disable Format->Word Wrap and enable View->Status Bar, the last line should be Ln 550)





TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jan 6 2017, 10:55 pm Wertyu Post #26



Emm happens the same to me but i tried to add some portraits with portdata.dat, for example with n 115



"Colonel Tom Kazansky was the best Wraith pilot in the Terran Dominion"

Emperor Arcturus Mengsk :horde:

Jan 7 2017, 6:45 pm O)FaRTy1billion[MM] Post #27

👻 👾 👽 💪

Unfortunately portdata hasn't been added to Dat Extender yet. But editing an extended portdata might be easier just to edit with the datcc ini files, because datedit incorrectly separates idle and talking portraits.

I did, however, get it to work in DatEdit just to see if it was possible.

Like before, datcc commands:
Code
datcc -d -p .
datcc -c -p -n 115 -e sprites.ini


Edit the def, however here you have to double the -n value because of datedit:
Code
[HEADER]
Varcount=3
InputEntrycount=230
OutputEntrycount=230


Then in Data\Portdata.txt, I added the following between "Flag (Blue) - Idle Portrait (Pl.12)" and "Marine - Talking Portrait" (so "Idle Portrait 110" should be on line 111)
Code
Idle Portrait 110
Idle Portrait 111
Idle Portrait 112
Idle Portrait 113
Idle Portrait 114

And this before the "None" at the bottom of the file:
Code
Talking Portrait 110
Talking Portrait 111
Talking Portrait 112
Talking Portrait 113
Talking Portrait 114




TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jan 8 2017, 12:04 am Wertyu Post #28



Damn i forget some little things in the process, but you take the job to enlight me again. More than appreciated



"Colonel Tom Kazansky was the best Wraith pilot in the Terran Dominion"

Emperor Arcturus Mengsk :horde:

Feb 5 2017, 12:28 am O)FaRTy1billion[MM] Post #29

👻 👾 👽 💪

I haven't fully tested it yet, but it now has Weapons.dat, Upgrades.dat and SfxData.dat. The biggest problem I can think of is loading from a CHK, I'm not sure if I made it read those wrong because I didn't check. xD

Upgrades require some editing of FireGraft, but fortunately it's really easy. In Data.mpq, just update the line that has UpgradeCount=61 in Firegraft\1161.fgd and then add the appropriate entries to Firegraft\upgradelist.txt. You can then edit dat reqs and such like normal.


Now all that's left is Techdata.dat (which after Upgrades.dat shouldn't be too bad) and Portdata.dat and fixing whatever is still broken in Units.dat.

Attachments:
DatExtend.qdp
Hits: 3 Size: 57kb



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Feb 5 2017, 5:46 am tehkain Post #30



Quote from O)FaRTy1billion[MM]
That's more just because it is incomplete. :P I dunno where to put the new names since adding them to stat_txt will sort of fuck up every other string ever. Also they should be able to have wireframes (I think in my test EXE I just reused wireframes instead of adding more).
(From the StarCraft: Origins topic)

For units.dat, couldn't you do something similar to your iscript extender (i.e. a stat_txt2 or units_txt)?



Master of something, master of not all.
-George H.W. Washington

"Ah, what beautiful bunker defenses I have here."
A wild 20 hydralisks appeared!

Feb 5 2017, 7:14 am O)FaRTy1billion[MM] Post #31

👻 👾 👽 💪

probably, I think that's what I had in mind. They don't not have names on purpose right now, I just haven't fixed it. :P



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Feb 9 2017, 2:23 am O)FaRTy1billion[MM] Post #32

👻 👾 👽 💪

I reuploaded datCC to the first post with a fix to iamges.dat to avoid crashes if you don't use the entries you add (Thanks tehkain).

(I think I compiled it correctly. :P)



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jul 9 2017, 9:31 pm Pr0nogo Post #33



I'm in the process of converting my walkable doodads into grps for the sake of saving some tiles, but I want to conserve all vanilla functionality, which means adding dat entries to images.dat. Is there any chance of this being updated to support GPTP plugins and integrated into PyDAT?




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2019-6-16. : 5:37 am]
Pr0nogo -- just open a game sound and compare it to your waveform, normalize/amplify as necessary
[2019-6-16. : 5:00 am]
SiKiN -- :wob:
[2019-6-16. : 5:00 am]
SiKiN -- than*
[2019-6-16. : 5:00 am]
SiKiN -- nvm someone just told me most sound files ingame are 20d higher volume then most recordings you import.
[2019-6-16. : 4:35 am]
SiKiN -- I meant 80% quieter
[2019-6-16. : 4:35 am]
SiKiN -- /wIs there a guide on .wav files on here? The ones I implemented are like 20% quieter than the originals. The game sounds make them impossible to hear.
[2019-6-16. : 2:05 am]
Moose -- :wob:
[2019-6-16. : 1:54 am]
lil-Inferno -- :wob:
[2019-6-16. : 1:04 am]
O)FaRTy1billion[MM] -- :wob:
[2019-6-16. : 12:54 am]
Wing Zero -- :wob:
Please log in to shout.


Members Online: Roy