Topic: ED, Comments on your EDDBEDIT editor!!!  (Read 9080 times)

0 Members and 1 Guest are viewing this topic.

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #40 on: April 16, 2007, 11:04:16 pm »

Ah, of course. Doh, I should have thought of that.

Setting it up to just damage the ship without changing the core stats shouldn't be a problem (it'd be nearly the exact same code in fact).  I'll take a look at it.

dave

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #41 on: April 16, 2007, 11:53:12 pm »
DONE!

It now allows you to control both the maximum (healthy) amount of each system and the current (undamaged) amount. 
[ It tells you what the max-healthy amount was before editing.]

Just tried it out - mangled my KRC to about 20% of hull and power, took it into mission, ran like a little girl, repaired back at base, and it's good as new!

The updated version of the editor is posted at the usual location (linked somewhere up above).

dave

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #42 on: April 17, 2007, 10:02:29 am »
Brilliant, Dave! Whoohaw!

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #43 on: April 22, 2007, 07:11:28 pm »
OK two new features added to the editor:

Global substitutions:
You can now specify that you want to replace all instances of X on the map with Y
The supported categories are:
  - max DV (e.g. replace all DV 20 hexes with DV 50)
  - owning empire (e.g. replace all Lyran hexes with Gorn)
  - base type (e.g. replace all base stations with battlestations, replace all listening posts with empty space, etc)
  - owning cartel
  - economy
  - planet type
  - terrain type

Regional Edits:
You can now specify a region (span of rows/columns), and assign feature X to all hexes in the region
The supported categories are:
 - add X to the max DV of each hex in the region
 - add X to the current DV of each hex in the region
 - add X to the economy of each hex in the region
 - set the owning empire to X for each hex in the region
 - set the owning cartel to X for each hex in the region
 - set the terrain type to X for each hex in the region
 - set the current DV to 50% of the maximum for each hex in the region


Keep your eyes open for quirks for the time being, I've only spot-tested most of them so far

dave

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #44 on: April 23, 2007, 12:14:36 am »
Oh boy, thats a lot to test. Awesome work! I have copies of the DB I can test this on. Will take time. This editor is becoming super robust. The things we can do with it, wow... puts the E in D. Thanks ED!

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #45 on: April 23, 2007, 08:47:48 am »

I was thinking of adding a race-surrender option: having one race surrender to another and get absorbed by it. 

Here's the way I figured it, for race X surrenders to race Y:
 - all race X's territory gets flipped to race Y
 - all race X's pilots get flipped to race Y, but keep their current ships
 - all the ships in race X's yards get moved to race Y's yards (but no more of race X's ships will ever get built)
 - race X is made unplayable so noone new can sign in to that race
 - the admin designates one base hex to be race X, just to give future AI a place to spawn

dave

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #46 on: April 23, 2007, 09:46:44 am »

I was thinking of adding a race-surrender option: having one race surrender to another and get absorbed by it. 

Here's the way I figured it, for race X surrenders to race Y:
 - all race X's territory gets flipped to race Y
 - all race X's pilots get flipped to race Y, but keep their current ships
 - all the ships in race X's yards get moved to race Y's yards (but no more of race X's ships will ever get built)
 - race X is made unplayable so noone new can sign in to that race
 - the admin designates one base hex to be race X, just to give future AI a place to spawn

dave


Good ideas, but put those on hold for a while b4 I forget this and ill get back to those ideas in a few minutes.

Ok, edited the hell out of the DB with your new features. I tested cartel and race ownership and economy settings in the Rectangular edit method. I didnt like how the economy prompt asked me to enter an adjustment. I'd prefer to have it ask me to enter in the NEW econ value. I had to deduce to use the minus symbol before my subtraction, but in doing so, lets say one of the DV's in the rectangular area of edit is less than the subtraction value. I'd then have a DB with a negative economy hex(s) and vice versa if I add it could go over 100 and thats bad too mb. So is it possible to change to set simply the new value of econ that overwrites whatever was there originally rather than afjusting it by plus and minus?

Go ck out the shipyard flatfile thread. New stuff there.

EDIT: I for sure will need a blanket rectangular edit feature that sets a new econ level, not an adjustment. Only way to make econs balanced...
« Last Edit: April 23, 2007, 12:17:59 pm by Dizzy »

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #47 on: April 23, 2007, 12:32:58 pm »
ED, I edited the number of turns on the DB for year 2279 to 485, approximately 120 more than it is. I did this to recoup lost turns during testing and was going to change it back to 365 in 2280.

Now if IIRC, the stardate before I changed the time was 2279.320 or close to that and when I logged in after the above change the stardate was 2275.360 or something... lol You're evil!

Apparently it is possible to edit the stardate, which isnt an option on your editor, and it sure would be a stellar option! But it appears that editing the number of turns per year doesnt work as planned!

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #48 on: April 23, 2007, 12:36:20 pm »
Update, indeed it did change the number of turns to 485 or so. But it took me back in time 4 years...

I'm going to have to edit the turns back to 356. Hopefully I wont see another time warp!

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #49 on: April 23, 2007, 12:37:39 pm »
Thanks Diz, I'll go back and check the math.  There are a handful of different places where the start date, turns per year, and time per year get combined to figure out what the current date/turn is - odds are I missed one or more of them.  I haven't looked at that particular chunk of code in a long while, so that one might take some doing to debug.

dave

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #50 on: April 23, 2007, 12:46:33 pm »
I edited the number of turns to 365 and the stardate jumped from 2276 to 2280. Back to where we were. I'm gonna try one more edit to see whats up. I'll need to add a few more turns to the year to end up in 2287 our finish year on Sunday. So my guess is that the edit will take the server date back in time again, lets see...

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #51 on: April 23, 2007, 12:55:21 pm »
Ok, I changed it from 365 turns to 385 and the stardate went from 228.103 to 2279.149. So I'll run the clock a bit and we will be there... I can live with 385 turns a year.

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #52 on: April 23, 2007, 04:07:29 pm »
Something to put on the backburner:

Request: The current editor allows you to take a player's ship and fully load it out. But it doesnt allow you to select a second ship or a third or a sixth. Can you set it up so the editor prompts you which ship you want to edit from a player's account from one to six? Note: The UI doesnt support more than 6 ships per player.

It'd be really helpful if this could happen. I've flown six ships on the OCI server before and tried it successfully on SG7, but there is no way to resupply more than three of them in space dock due to the 3 ship non changeable selection. So where this would be useful is in the area of a campaign with a pre arranged battle. Each of the participants ships (up to 36 ships in combat, 6 per player) could be outfitted, damaged or both according to the scenario using existing features in your editor. All we need to be able to do is simply select each players ship from 1 to 6.


Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #53 on: April 23, 2007, 05:20:25 pm »
Something to put on the backburner:

Request: The current editor allows you to take a player's ship and fully load it out. But it doesnt allow you to select a second ship or a third or a sixth. Can you set it up so the editor prompts you which ship you want to edit from a player's account from one to six? Note: The UI doesnt support more than 6 ships per player.

It'd be really helpful if this could happen. I've flown six ships on the OCI server before and tried it successfully on SG7, but there is no way to resupply more than three of them in space dock due to the 3 ship non changeable selection. So where this would be useful is in the area of a campaign with a pre arranged battle. Each of the participants ships (up to 36 ships in combat, 6 per player) could be outfitted, damaged or both according to the scenario using existing features in your editor. All we need to be able to do is simply select each players ship from 1 to 6.



It steps through a player's ships in order Diz - first asking what you want to do to the first ship, then when you're done with that it asks what you want to do with the second ship, etc.     But  you're right in that in can only do the first 3 ships, not 4/5/6.

An example shown below:

 ..... just after the player editing section you get this ...
Enter T to assign a new ship type from the shiplist

   or R to repair all ship systems
   or S to supply full load of parts, marines, t-bombs, drones, and fighters
   or F to modify the ship fighters

   or E to edit ship (non-weapon) systems
   or D to edit existing ship drone systems
   or W to edit existing ship weapon (non-drone) systems

   or B to edit ship BPV
   or C to edit ship EPV (economic bpv)
   or H to modify ship hull class
   or N to modify ship name
   or P to change the player race for the ship

   or Q to quit editing this ship
 ... I want to edit the second ship not the first, so I'll quit on this one and it moves on to # 2 ...
Q
Finished modifications to ship 1

 === Editing ship 2 ===

Enter T to assign a new ship type from the shiplist

   or R to repair all ship systems
   or S to supply full load of parts, marines, t-bombs, drones, and fighters
   or F to modify the ship fighters

   or E to edit ship (non-weapon) systems
   or D to edit existing ship drone systems
   or W to edit existing ship weapon (non-drone) systems

   or B to edit ship BPV
   or C to edit ship EPV (economic bpv)
   or H to modify ship hull class
   or N to modify ship name
   or P to change the player race for the ship

   or Q to quit editing this ship

 .. etc etc etc til you've gone through all their ships...


dave

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #54 on: April 23, 2007, 05:53:36 pm »
Well I can buy 6 ships, but not currently, but u can, and the UI supports 6 ships in battle and I've flown 6, but i cant repair or supply more than 3 in spacedock. Can your editor be made to do this?

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #55 on: April 23, 2007, 07:33:24 pm »

I think so - just have to make sure I'm not overlooking anything (that's not the cleanest section of the code  :-\ )

dave

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #56 on: April 24, 2007, 08:22:44 pm »
Well I can buy 6 ships, but not currently, but u can, and the UI supports 6 ships in battle and I've flown 6, but i cant repair or supply more than 3 in spacedock. Can your editor be made to do this?

Well, I don't know how you assign/buy the 4th-6th ships, but the editor is now set up so that it can edit/supply all six.

dave

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #57 on: April 24, 2007, 08:44:47 pm »
In economy gf:

// This is the maximum number of ships a player can buy
// should not be more than what game UI can handle
MaximumOwnedShips         = 3      (change this to 6)

Just change it to 6. The UI in battle can handle 6 ships max. But spacedock can only repair/resupply 3, but allows you to buy and sell up to 6.

EDIT: Oh! I missed that! You got it to work! WOW! Cant wait to test it!

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #58 on: April 25, 2007, 08:42:46 am »

Doh!  Dunno where my brain was, I should have known that!

AH well, seems ok in testing so far

thanks!
dave

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #59 on: April 27, 2007, 04:21:57 pm »

OK, since I keep losing this thread, I've added the editor tutorial to my site and updated it for the new features:
http://www3.telus.net/NuclearWessels/sfc/eddbeditguide.html

dave