Author Topic: Helping out with External Code  (Read 20306 times)

Offline Draco18s

  • Resident Velociraptor
  • Core Member Mark V
  • *****
  • Posts: 4,251
Re: Helping out with External Code
« Reply #90 on: July 06, 2017, 08:54:01 am »
Shouldn't be too hard to do some of those, Pumpkin. Badger has an example gen method set up and I did a couple.

As for why we didn't, because we forgot. ;)

Offline BadgerBadger

  • Arcen Volunteer
  • Hero Member Mark III
  • *****
  • Posts: 1,229
  • BadgerBadgerBadgerBadger
Re: Helping out with External Code
« Reply #91 on: July 15, 2017, 12:37:16 pm »
I've tidied up the code a bit for the map generators, to make them less verbose (all printouts are silent by default, but you can turn them on with a boolean when coding). Also, I've improved a number of my maps by having the default planet placement be in a rectangle instead of in a big circle. This reduces the amount of scrolling required to get a full picture of what's happening on the map.

I've also improved the notes for the Tutorial map.

This includes Tadrinth's latest changes to the Octopus map, and the Ellipse point generator that Draco wrote.

You should be able to drop this code into the base game without it causing obvious problems.
« Last Edit: July 15, 2017, 12:45:47 pm by BadgerBadger »

Offline BadgerBadger

  • Arcen Volunteer
  • Hero Member Mark III
  • *****
  • Posts: 1,229
  • BadgerBadgerBadgerBadger
Re: Helping out with External Code
« Reply #92 on: August 01, 2017, 11:50:20 am »
This new version of the C# code quiets all build warnings (no functional changes)

Offline Draco18s

  • Resident Velociraptor
  • Core Member Mark V
  • *****
  • Posts: 4,251
Re: Helping out with External Code
« Reply #93 on: August 01, 2017, 02:56:42 pm »
I apparently never attached my own code.

The code directly refers to the bitmap by filename (I am not aware of how to handle that via UI or XML config), but the image itself could be almost anything.

Offline BadgerBadger

  • Arcen Volunteer
  • Hero Member Mark III
  • *****
  • Posts: 1,229
  • BadgerBadgerBadgerBadger
Re: Helping out with External Code
« Reply #94 on: August 01, 2017, 06:44:12 pm »
Nice work Draco!