Author Topic: Is there a reason the Defence Mode is not JSONized?(also, other questions)  (Read 285 times)

Offline Nymall

  • Zombie Food
  • *
  • Posts: 8
    • View Profile
Hi guys,

Before i get neck-deep in code, I wanted to ask if there was a reason that the caravan mode stuff is not JSONized, or just pulling random stuff from loaded code via loot lists? I was thinking off at the very least moving all the information to a JSON file so that some of the suplies are more sane and easy to edit.

As well, the hospital mode - is there a reason we cannot build or place mines in that mode? As far as I have found, the other maps allow you to, so it's strange why this one does not.

Are there any other features you would like me to explore adding to defence mode?

Thanks!

Offline Greiger

  • NPC
  • **
  • Posts: 166
    • View Profile
Re: Is there a reason the Defence Mode is not JSONized?(also, other questions)
« Reply #1 on: December 29, 2016, 12:50:31 AM »
I'm not a dev, but if I understand correctly the mode where you are protecting a generator dates back to the days of wales dev.  And from what I picked up from lurking on the github, stuff from those days are a complete mess and very difficult to work with.

Probably does not help that it does not seem to be a very popular gamemode.  But it's probably just a catch 22.  It's not popular because of a lack of updates, and it does not get updated because it's not popular.
I have a mod!  It has new vehicles! Like 3 wheeled microcars, dune buggies, trailer parks, and tanker trucks!
http://smf.cataclysmdda.com/index.php?topic=13738.0

Offline Nymall

  • Zombie Food
  • *
  • Posts: 8
    • View Profile
Re: Is there a reason the Defence Mode is not JSONized?(also, other questions)
« Reply #2 on: December 29, 2016, 06:13:57 PM »
So, as long as I don't break anything else and I'm incorperating features from the main game cleanly, there shouldn't be  problem?

I'll start taking a crack at cleaning it up and see what I can do.

Offline Kevin Granade

  • Administrator
  • Survivor
  • *****
  • Posts: 5313
  • I code dead people.
    • View Profile
Re: Is there a reason the Defence Mode is not JSONized?(also, other questions)
« Reply #3 on: December 29, 2016, 08:03:39 PM »
Geiger is correct, the only reason that code isn't jsonized is that it has been ignored for years.  Frankly I don't even care if you break defence mode while you're working on it, it's basically broken and unusable right now.
Its like a fun family cookout, except your family is burning in flames while trying to eat you. -secretfire
I'm more excited than a survivor on meth and toast'ems. -Nighthawk
The the giant wasp is slammed through the zombie brute!

Offline DeclanFrost

  • Survivor
  • ***
  • Posts: 334
    • View Profile
Re: Is there a reason the Defence Mode is not JSONized?(also, other questions)
« Reply #4 on: December 29, 2016, 10:54:45 PM »
Geiger is correct, the only reason that code isn't jsonized is that it has been ignored for years.  Frankly I don't even care if you break defence mode while you're working on it, it's basically broken and unusable right now.
I created a defence game before and never loaded it up again. I came back a week later and my normal game world was broken. Bubble wrap (bought it in defence mode) was spawning in a 10-tile box around my player wherever he walked. No idea how, why, or when that was caused.
Ironically there are more pimps in garages than wrenches.