Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upRefactor blazemod [RDY] #17456
Conversation
Blaze-whatdoyoumeanitsalreadytaken
and others
added some commits
Jun 29, 2016
mugling
added
[JSON]
Mods
labels
Jul 1, 2016
mugling
added some commits
Jul 1, 2016
This comment has been minimized.
This comment has been minimized.
|
Done. No assessment as to balance just refactoring of the JSON using the lint tool |
This comment has been minimized.
This comment has been minimized.
|
The PR is damn huge. |
mugling
added some commits
Jul 12, 2016
This comment has been minimized.
This comment has been minimized.
Yes, no way around that - reformatting only adds ~30% versus the parent PR (#17417) |
mugling
referenced this pull request
Jul 15, 2016
Closed
Uploading updated version of Vehicle Additions Pack #17417
mugling
changed the title
Refactor blazemod [WIP]
Refactor blazemod [RDY]
Jul 16, 2016
This comment has been minimized.
This comment has been minimized.
|
Is it tested or only reformatted? |
Coolthulhu
reviewed
Jul 18, 2016
| "ammo_type": "hbolt", | ||
| "damage": 14, | ||
| "effects": [ "FLAME", "NEVER_MISFIRES", "COOKOFF" ], | ||
| "flags": [ "" ] |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
mugling
Jul 18, 2016
Author
Contributor
This line is horrible. Can linter detect and remove those too?
I could extend it to provide a NOEMPTY output flag
Coolthulhu
reviewed
Jul 18, 2016
| "symbol": "*", | ||
| "color": "red", | ||
| "count": 1, | ||
| "stack_size": 1, |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
mugling
Jul 18, 2016
Author
Contributor
Yes, but that is out of scope of the linter - it's valid JSON, a valid field and sensibly formatted.
Strict mode (#17722 etc) could detect this but cannot be enabled by default for mods due to the false positives that would be reported due to the variation in load order. One option would be a command-line switch that selectively tested a mod in strict mode and output a non-compliance log?
Coolthulhu
reviewed
Jul 18, 2016
| "damage": 14, | ||
| "effects": [ "NAPALM", "NEVER_MISFIRES", "COOKOFF" ], | ||
| "flags": [ "" ] | ||
| }, |
This comment has been minimized.
This comment has been minimized.
Coolthulhu
Jul 18, 2016
Contributor
This entire line of items is a giant block of horrible copy+paste. Would benefit from some "similar json detector" system that would replace sets of definitions with copy-from entry.
Extending linter to do that would probably be too much work (it's too specialized), but I could write a custom script just to do that for this PR.
This comment has been minimized.
This comment has been minimized.
It is only reformatted. I haven't addressed balance or anything like that. |
This comment has been minimized.
This comment has been minimized.
Balance can be off (most likely is), but someone will have to bite the bullet and go through all of this crap to check if it actually works or spews debugmsgs on every attempt. Or we can just say "fuck it" and merge it with the assumption that mod content can be full retard. But then we'll have to maintain it.
Could you run a separate script for that? Some simple
and ditto for "stack_size". The PR is unreviewably huge and ugly. Some quick and dirty solutions may be necessary to trim it to manageable size. |
This comment has been minimized.
This comment has been minimized.
|
Yes, some
It's better by far than the status quo and to be honest I can only justify further effort in this PR in that context.
This is effectively a one-time deal. We should do everything possible to avoid getting to this situation again. Maintenance should be more practical given the lack of JSON errors and the author becomes responsible for any fixes internal to the mod. Summarily if I run this through |
This comment has been minimized.
This comment has been minimized.
I'd still have objections. This needs automated testing. I see a unit test like this:
I assume many turrets will fail it, so whatever commands you're using to clean this up you should save in a script. We'll have to work with blaze to make the mod at least work before it's really mergeable, so we'll most likely have to clean it up more than once. |
This comment has been minimized.
This comment has been minimized.
|
Do you need help? |
mugling
referenced this pull request
Aug 2, 2016
Closed
Blazemod turrets are awkward to reload #17883
This comment has been minimized.
This comment has been minimized.
|
When is this coming? |
This comment has been minimized.
This comment has been minimized.
|
Waiting on #17746 |
This comment has been minimized.
This comment has been minimized.
|
Are you still interested in merging this? |
This comment has been minimized.
This comment has been minimized.
|
Needs a rebase then some fixes to pass the unit tests but we should be otherwise ready. @Coolthulhu anything else? |
This comment has been minimized.
This comment has been minimized.
|
Once it passes the firing test and is mergeable, it should be better than the broken version we have in master. |
mugling
force-pushed the
mugling:blazemod
branch
3 times, most recently
to
c75dbfd
Sep 9, 2016
This comment has been minimized.
This comment has been minimized.
|
This is very difficult to rebase |
mugling
force-pushed the
mugling:blazemod
branch
Sep 10, 2016
mugling
added some commits
Sep 10, 2016
This comment has been minimized.
This comment has been minimized.
|
0227c16 fixes a bug whereby specifying Almost ready:
|
mugling
force-pushed the
mugling:blazemod
branch
to
8236216
Sep 10, 2016
This comment has been minimized.
This comment has been minimized.
|
Passes all automated tests and considerably easier to work on than before. No doubt the mod contains other issues but I'm going to merge this as per the above discussion. |
mugling commentedJul 1, 2016
Cleanup of #17417 using #17431