Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aftershock errors to be fixed #36425

Merged
merged 20 commits into from
Jan 2, 2020

Conversation

Maleclypse
Copy link
Member

Summary

SUMMARY: Bugfixes "Remove aftershock from mod test blacklist"

Purpose of change

Removing mods from the testing blacklist.

Describe the solution

KorGgenT sent me a file of failed tests and I am working on resolving them.

Describe alternatives you've considered

None

Testing

Test results AFS.txt

I've marked clear on any that I think I've resolved so far.

Additional context

@Maleclypse
Copy link
Member Author

Maleclypse commented Dec 25, 2019

@I-am-Erk can you help with where I should be putting mon_faction to align an npc with a group of monsters? 09:36:02.974 ERROR : d:\projects\cataclysm-dda-fork\src\json.cpp:112: Failed to visit member 'mon_faction' in JsonObject at line 14:6: { "type": "npc", "id": "afs_gardener_cyborg", "//": "PrepNet Phyle Gardener.", "name_suffix": "Gardener", "class": "afs_prepnet_gardener", "attitude": 1, "mission": 0, "chat": "TALK_PrepNet_gardener_1", "faction": "Prepnet_Phyle", "mon_faction": "PrepNet" }

Whenever you get to it, I totally get it's the holidays :)

@Maleclypse
Copy link
Member Author

@KorGgenT I'm not understanding this error 09:36:02.983 ERROR : d:\projects\cataclysm-dda-fork\src\json.cpp:112: Failed to visit member 'entries' in JsonObject at line 40:1995: { "both": [ "laptop", "software_useless", "linuxtshirt", "pants_cargo", "socks", "slingpack", "sneakers", "smart_phone" ], "entries": [ { "item": "light_plus_battery_cell", "ammo-item": "battery", "charges": 150, "container-item": "eink_tablet_pc" } ], "male": [ "briefs" ], "female": [ "bra", "panties" ] }
since the profession
{ "type": "profession", "ident": "afs_linux_patron", "name": "Linux Patron", "description": "You've grown up using Linux, have hacked together your own operating system out of Gentoo and a bunch of packages, and campaign for open source like it's a basic human right. None of these things matter in the apocalypse, but your knowledge of the inner workings of 87% of the world's servers might.", "points": 2, "skills": [ { "level": 5, "name": "computer" } ], "items": { "both": [ "laptop", "software_useless", "linuxtshirt", "pants_cargo", "socks", "slingpack", "sneakers", "smart_phone" ], "entries": [ { "item": "light_plus_battery_cell", "ammo-item": "battery", "charges": 150, "container-item": "eink_tablet_pc" } ], "male": [ "briefs" ], "female": [ "bra", "panties" ] }
uses entries in the same way that other professions not popping errors seem to be using it.

@Maleclypse
Copy link
Member Author

@tenmillimaster using clip_size for lasers appears to cause a fatal error. I'd like to keep it a laser for now but I suppose I can create some kind of ammo for it. Or I could look at wands from Magiclysm and see if I can make a spell that it casts with charges? Would that make aftershock require magiclysm?

@KorGgenT
Copy link
Member

KorGgenT commented Dec 25, 2019

that would not make aftershock require magiclysm
i don't know the answer to the json error question

@curstwist curstwist added <Bugfix> This is a fix for a bug (or closes open issue) [JSON] Changes (can be) made in JSON Mods Issues related to mods or modding labels Dec 27, 2019
@I-am-Erk
Copy link
Member

@I-am-Erk can you help with where I should be putting mon_faction to align an npc with a group of monsters? 09:36:02.974 ERROR : d:\projects\cataclysm-dda-fork\src\json.cpp:112: Failed to visit member 'mon_faction' in JsonObject at line 14:6: { "type": "npc", "id": "afs_gardener_cyborg", "//": "PrepNet Phyle Gardener.", "name_suffix": "Gardener", "class": "afs_prepnet_gardener", "attitude": 1, "mission": 0, "chat": "TALK_PrepNet_gardener_1", "faction": "Prepnet_Phyle", "mon_faction": "PrepNet" }

Whenever you get to it, I totally get it's the holidays :)

I'm not completely sure, I would start by checking out monster factions and just seeing what happens if you give an npc a monster faction. Whatever is done for Aspis, the bee NPC, is probably what will work.

@Maleclypse
Copy link
Member Author

Maleclypse commented Dec 30, 2019

I'm not completely sure, I would start by checking out monster factions and just seeing what happens if you give an npc a monster faction. Whatever is done for Aspis, the bee NPC, is probably what will work.

Apis doesn't have a mon_faction. I've searched mon_faction and apis to see if I'm misreading it.
The only place that uses mon_faction in vanilla is your_followers. I've mirrored that in my update.

@Maleclypse
Copy link
Member Author

@anothersimulacrum
I'm wanting it to deconstruct from a corpse as a non reloadable gun with charges. [ { "result": "broken_afs_mon_migoturret", "type": "uncraft", "skill_used": "survival", "difficulty": 5, "time": "1 h", "using": [ [ "soldering_standard", 10 ] ], "components": [ [ [ "living_brain_jar", 1 ] ], [ [ "brain", 4 ] ], [ [ "mutant_meat", 12 ] ], [ [ "vibrating_blaster", 1 ], "charges": { 70, 80 } ], [ [ "humming_heart", 1 ] ], [ [ "sensory_cluster", 1 ] ], [ [ "bioweapon_chassis", 1 ] ] ] }

@Maleclypse
Copy link
Member Author

@ZhilkinSerg I saw where you made bugfixes earlier today and I needed to resolve conflicts with those. I tried to make sure I did them correctly but I would appreciate it if you could review this when you have a moment. Thanks!

Co-Authored-By: ZhilkinSerg <ZhilkinSerg@users.noreply.github.com>
@Maleclypse Maleclypse changed the title WIP Aftershock errors to be fixed Aftershock errors to be fixed Jan 1, 2020
@kevingranade kevingranade merged commit efa31be into CleverRaven:master Jan 2, 2020
@John-Candlebury John-Candlebury added the Mods: Aftershock Anything to do with the Aftershock mod label Jan 8, 2020
@Maleclypse Maleclypse deleted the Aftershock-Mod-Cleanup branch April 13, 2020 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [JSON] Changes (can be) made in JSON Mods: Aftershock Anything to do with the Aftershock mod Mods Issues related to mods or modding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants