Staredit Network > Forums > SC1 Mapping Tools > Topic: Chkdraft Project
Chkdraft Project
Oct 9 2012, 12:42 am
By: jjf28
Pages: < 1 « 10 11 12 13 1415 >
 

Dec 11 2015, 1:47 am Moose Post #221

We live in a society.

Thing that would be cool:

If mappers could export/import map sections ala SCMIE, maybe even more. This would be unit/building stats, tech stats, upgrade stats, location data, unit data, etc.

Thing that would be cooler:

If they exported and imported as text files. For export, possibly to the console on the command line.

Thing that would be coolest:

If you could do that on the command line, ex. chkdraft.exe myMap.scx --export upgrades upgrades.txt and chkdraft.exe myMap.scx --import upgrades-new.txt myMap-new.scx etc.

Ultimately, this means I can use the command line, or even better, write scripts that use text processing to do things in batch, quickly and accurately.
Then I can do something powerful like make all units and buildings cost half and build twice as fast in roughly three minutes if the text formats are nice to work with.
Then I can do something crazy like automate putting a 7x6 location centered on every Terran Beacon on the map with a script wrapping a program that reads in both location and unit data.

Essentially, we've seen the power of text triggers and what we can do by editing them as text. I would just like to see them brought to the rest of the map. The command line stuff just makes it more versatile and facilitates programmatic automation of editing. Actually, since I mentioned that, text triggers could use that, too.

Post has been edited 4 time(s), last time on Dec 11 2015, 2:00 am by Mini Moose 2707.




Dec 11 2015, 3:29 am Oh_Man Post #222

Find Me On Discord (Brood War UMS Community & Staredit Network)

JJ right now:






Dec 14 2015, 5:11 am jjf28 Post #223

Cartography Artisan

Update 2015-12-13 - Download Latest



Feature changes:
- Trigger Action Editor Completed!
- Now has condition/action copy/cut/paste (compatible with Excel)
- Simple backup system (see below)
- Unused conditions are no longer checked
- Deleting conditions grid selections now deletes conditions correctly

Bug/Error fixes:
- Fixed a bug where razings and total were suggested as a single score type
- Fixed a bug where classic conditions would believe extra arguments were present for highestScore
- Fixed a bug where the conditions grid header was occasionally not drawn
- Fixed a bug where switching layers while holding a quick paste could produce strange results
- Fixed a bug where ChkdStrings 'isOneLine' value was not correctly set

Code changes:
- Meh


Simple backup system: If a backup hasn't been created since the map was opened or it's been 30 minutes since the last backup, an exact copy of the map from before Chkdraft opened it/before you saved will be created in chkd/backups/. This will be improved upon compression and customizability-wise, but for now I just want users to be able to fearlessly go fourth and trigger :).



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Dec 14 2015, 6:20 am JCarrill0 Post #224



Looking good, but got a long ways to go, any chance you can use a scroll menu when choosing stuff?




Dec 15 2015, 5:36 pm jjf28 Post #225

Cartography Artisan

Just adding a scrollbar like this? (will be on there next patch)



Or were you thinking something else?



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Dec 15 2015, 8:50 pm JCarrill0 Post #226



Quote from jjf28
Just adding a scrollbar like this? (will be on there next patch)



Or were you thinking something else?
awesome!




Mar 26 2016, 4:55 pm jjf28 Post #227

Cartography Artisan

Update 2016-03-26 - Download Latest

Feature Changes:
- CUWP Editor Created (Incomplete)
- Tile color cycling added
- Added a scrollbar to trigger suggestions

Bug/Error fixes:
- Fixed a critical error where map MPQs were overridden with a blank file before saving (deleted non-virtual WAVs, WAV repair utility to be released soon).
- Fixed a bug where paste/quick-paste operations would, in some cases, deselect the current tree item
- Fixed a bug where compressed unit color portions were drawn using the wrong palette
- Fixed a bug where the location window would close when undoing and the result was the map having more than zero locations, rather than when it had zero locations.
- Fixes to dialogs when StarCraft's not installed
- Fixed an error where three-char oct values were parsed incorrectly

Code changes:
- All tabs replaced with 4 spaces, all quoted tabs with \t
- More use of STL/newer C++ features
- More enums, less defines
- Fewer compiler warnings
- Fewer uninitialized variables
- More use of const when using reference parameters
- Removed spaces from code sub-folders
- Now includes makefile and Mingw compatibility
- SFmpq Submodule (for Mingw version)
- Removed all instances of "Scenario" and "Map File" above the mapping core level, s.t. every method in those classes can be overriden/hooked in GuiMap when necessary
- Removed direct use of Scenario sections by files above mapping core & replaced those procedures with ones that use functions in Scenario.
- Solidified the relationship of Selections and Graphics as a part of GuiMap, rather than stanalone objects, in part by giving them a reference to the GuiMap they are a part of.
- Lighter Undo Syntax (Make methods for allocating the shared pointers for specific undos).
- Cleaned up the TerrainPalette, UnitWindow and LocationProperties files.
- Miscellaneous refactoring and cleanup

Post has been edited 2 time(s), last time on Apr 30 2016, 5:10 am by jjf28.



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Mar 27 2016, 8:36 am iCCup.xboi209 Post #228



I suggest you also utilize the releases feature on Github: https://github.com/jjf28/Chkdraft/releases



None.

Apr 30 2016, 5:04 am jjf28 Post #229

Cartography Artisan

Update 2016-04-30 - Download Latest

Feature Changes:
- Trigger conditions/actions no longer use/display more cells than are needed for the current conditions/actions.
- Independent CUWP editor completed
- Independent Switch editor completed
- Inline CUWP editor completed

Bug/Error fixes:
- Fixed a bug where new maps/save-as wouldn't work
- Fixes to CUWP editor
- Fixes to Trigger window

Code changes:
- Little extra documentation for buffer methods


Screenies


Also: while not on this one, I will start using actual version numbers (perhaps automated based on date as I did in MiniViews) in Chkdraft/on git for subsequent releases (as per xboi's suggestion).

Post has been edited 4 time(s), last time on Apr 30 2016, 5:13 am by jjf28.



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

May 6 2016, 5:28 am jjf28 Post #230

Cartography Artisan

Update 2016-05-06 - Download Latest

Feature Changes:
    - Added version numbers (mix of a manual x.xx and an automatic xxxx.xxxx based on date/time, only the manual portion will be shown on the title bar in the future, but for now, laziness prevails).
    - Added Sub-String recycling (which is only used when a maps string section would otherwise be full).

Bug/Error fixes:
    - Fixed a bug where quotes were not properly dealt with in text trig strings.

Post has been edited 1 time(s), last time on May 6 2016, 5:33 am by jjf28.



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

May 15 2016, 11:53 am Rawflesh0615 Post #231



Can you upload the latest application?



None.

May 15 2016, 3:02 pm jjf28 Post #232

Cartography Artisan

The latest stable version is uploaded? Were you looking for something specific?



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

May 18 2016, 2:32 pm Rawflesh0615 Post #233



For what I am telling you is. I already download the chkdraft which is from 2012. Somehow, I click over the button where it said download latest, but it already look familiar like the previous one. When the final version will be upload?



None.

May 18 2016, 3:10 pm iCCup.xboi209 Post #234



Quote from Rawflesh0615
For what I am telling you is. I already download the chkdraft which is from 2012. Somehow, I click over the button where it said download latest, but it already look familiar like the previous one. When the final version will be upload?
So you did download the latest version then. The final version will be uploaded when it's done.



None.

May 18 2016, 3:48 pm jjf28 Post #235

Cartography Artisan

If it's not just a text editor, it's different from 2012 :wob:

I've been using SEN's file upgrade feature which doesn't track the last update time.



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Apr 3 2017, 2:55 am jjf28 Post #236

Cartography Artisan

Wrote a thousand some lines of code for WAV management, could anyone help me do some testing?

Chkdraft Pre-Release

A little bit about the process: when you add or remove a WAV from your map it preps that change to go along with your next save (rather than immediately adding or removing from the map file), and in the case of adding puts the WAV into a temporary MPQ in the "/chkd/Pre-Save/" directory; when you save the map it commits those changes (either adding the selected WAVs to your map, or removing any WAVs that need to be removed from the MPQ); if you add and remove the same WAV it should erased from prepped changes and won't be committed.

With Chkdraft you can see all the WAVs that are not registered in the WAV section but are used in triggers/briefing (even if the action (e.g. Preserve Trigger) has no use for the wavId that is set) - so you may find your maps have a bunch of junk hidden from view. I've put a bunch of stats up top to help with these unfamiliar situations.

I've also had the wav list colored/formatted like the string list cause it was slightly easier to piggy-back off the string editor code; I'll do some more thinking on whether I leave it this way.

Some variables to look out for when testing:
- Whether or not the map is open in another program (e.g. Ladik's MPQ editor) at any point
- Whether or not compression is selected
- Whether or not the map is edited externally between the time you change WAVs and the time you save





TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Apr 3 2017, 3:34 am Oh_Man Post #237

Find Me On Discord (Brood War UMS Community & Staredit Network)

How does this work for ppl who use winmpq to recycle WAV strings?




Apr 3 2017, 11:42 am jjf28 Post #238

Cartography Artisan

Your WAVs will be possible to view and remove (as it shows all WAVs used in triggers in addition to those registered in the WAV section), in the future I'll add a combobox so you can set an existing or new string as the WAV title (skipping the need to use an external MPQ editor).

Also you should be able to clean up any junk left behind by the process of recycling a WAV string.

Post has been edited 1 time(s), last time on Apr 3 2017, 11:57 am by jjf28.



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Apr 3 2017, 12:17 pm Oh_Man Post #239

Find Me On Discord (Brood War UMS Community & Staredit Network)

Hmm that sounds pretty damn handy man. I'll give it a go on the weekend and let you know how it goes.




Apr 3 2017, 1:46 pm Zoan Post #240

Math + Physics + StarCraft = Zoan

jj, it would also be cool if there was a 'wav-length to number of trigger cycles' converter for the lazy.



\:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

Options
Pages: < 1 « 10 11 12 13 1415 >
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are some real members mixed in those latter pages, but the *vast* majority are spam accounts
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are almost 3k pages
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- the real members stop around page 250
[2024-4-14. : 9:20 pm]
O)FaRTy1billion[MM] -- look at the members list
[2024-4-12. : 12:52 pm]
Oh_Man -- da real donwano
da real donwano shouted: This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
it's pretty common
[2024-4-11. : 9:53 pm]
da real donwano -- This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
[2024-4-11. : 4:18 pm]
IlyaSnopchenko -- still better than "Pakistani hookers in Sharjah" that I've seen advertised in another forum
[2024-4-11. : 4:07 pm]
Ultraviolet -- These guys are hella persistent
[2024-4-11. : 3:29 pm]
Vrael -- You know, the outdoors is overrated. Got any indoor gym and fitness equipment?
[2024-4-10. : 8:11 am]
Sylph-Of-Space -- Hello!
Please log in to shout.


Members Online: eksxo, Roy