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

0 Members and 1 Guest are viewing this topic.

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
ED, Comments on your EDDBEDIT editor!!!
« on: April 05, 2007, 02:57:31 pm »
Unless it's unchanged from SG6, he has it.
« Last Edit: April 12, 2007, 03:14:16 pm by Dizzy »

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #1 on: April 05, 2007, 03:01:29 pm »

I think  I found and squashed a couple of additional bugs after that, but not sure

The latest is at http://www3.telus.net/NuclearWessels/sfc/downloads/EDDBEDIT.exe

dave

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #2 on: April 05, 2007, 03:06:32 pm »
Thanks dave. DH what DB cleaner are we using? I have the one I used from SG6. Want that one?

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #3 on: April 10, 2007, 11:41:50 am »
Threw in an update:  the report feature now displays the current race/cartel economic totals, the max econ (used to determine everyone's ranking from 0-5) and the average econ (used for shipyard pricing), and the empire's economic rank after racial adjustments.

(The econ summary appears right after the long list of hex info.)

dave
« Last Edit: April 10, 2007, 01:09:15 pm by NuclearWessels »

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #4 on: April 10, 2007, 12:57:24 pm »
That will be a good tool, thx dave. Now I can better figure out who's able to get starbases...
Where is it?

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #6 on: April 10, 2007, 01:13:24 pm »
Great. I'll upload that on THOR when I login next to do my mad edits... You know, that editor is slick. It's too bad it takes so long to use. To make one edit takes usually a minute. And every minute is one more PM I get from someone wondering why I'm taking so long to do a DB clean, lol.

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #7 on: April 10, 2007, 01:53:20 pm »

That's the special "drive_em_crazy()" function I included -- doesn't do anything but add another level of questions and a 30 second delay at each step  ;D

dave

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #8 on: April 10, 2007, 02:13:38 pm »
Dave, something I didnt see in the editor that would help...

It seemed to have a blanket edit feature for raising the max level of DV's all over the map. What I'd liked to have done is to be able to have selected a DV level of say all the hexes that had a DV level of 12 and raise the max of just every hex that had that DV level. But the editor didnt seem to allow for you to choose just one set of DV;s, rather just all of them. Can that be changed so I can select just a particular set of DV's and change their maximum without editing them all?

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #9 on: April 10, 2007, 02:59:51 pm »

Yeah, I've been meaning to add a bunch of editing options, so you can select by race or terrain or econ or DV - I just haven't gotten around to it yet.

dave

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #10 on: April 10, 2007, 03:20:33 pm »
You know what might be cool? Is if I could mass edit an entire race's hex ownership to someone else. If that were possible I could actually move one race's location with another. I could turn all fed space to Klink then all klink to fed so wherever they were on the map, they'd effectively have swapped places.

What about editing racial tensions on the DB itself? Is it possible? Has anyone ever done this? I wonder if it'd work. Be nice, right now I'd love to switch the Mirak to Alliance... I'd then have to swap Mirak space for ISC space to keep it all good... If that'd be possible it'd really make a server's possibilities interesting.

Offline FPF-DieHard

  • DDO Junkie
  • Captain
  • *
  • Posts: 9461
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #11 on: April 10, 2007, 04:19:50 pm »
Dizzy, did you figure out how to swap ships?
Who'd thunk that Star-castling was the root of all evil . . .


Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #12 on: April 10, 2007, 04:35:51 pm »
Ya, just make sure u copy the shiplist to the DB directory when you run the editor. If you mess with the fighter loadout, you'll then need to copy over the ftrlist too.

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #13 on: April 10, 2007, 04:52:23 pm »
Hey Dave, ck this pic out. Once I cleaned it with your editor the server kit wouldnt start back up. I guess its because of this error. I had to use Dark Elf's cleaner a few times to kill this error. What do u make of it? Find attached to this link: http://www.dynaverse.net/forum/index.php?action=dlattach;topic=163374058.0;id=12052

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #14 on: April 10, 2007, 05:08:13 pm »
Hmmm - if you can fire me a copy of the Sfc2Spd.sds file I'll see if I can track it down.

EDIT: Doh!  Nevermind, found the .sds ;)
I'll see if I can track it down this afternoon

thanks!
dave

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #15 on: April 10, 2007, 05:16:35 pm »
Great cuz the server just crashed again and I'd like to know what's up with the DB...

Offline KAT Chuut-Ritt

  • Vice Admiral
  • *
  • Posts: 26163
  • Gender: Male
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #16 on: April 10, 2007, 05:19:30 pm »
Great cuz the server just crashed again and I'd like to know what's up with the DB...

I think its due to the bonus prestige in admin accounts.  Perhpas eliminating those will fix the problem.   ;D

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #17 on: April 10, 2007, 05:20:14 pm »
Now it says there is a mismatch in -2147483462 Vs 186

Similar to before...

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #18 on: April 10, 2007, 06:53:40 pm »

OK, live and learn - there were a couple of "prepared missions" in the middle of the db, turns out their structure is a little different.

A fixed version of the editor is posted at the usual location.

And (as a bonus for waiting) there's a tensions editor for ya diz:
 - select E for edit
 - then T for tensions
 - then you pick pairs of races whose relationship you want to change
I've tried it out on a test server, but you'll want to make backups first just in case  ;)

dave

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #19 on: April 10, 2007, 07:12:46 pm »
prepared missions, what does that mean? Was that where the errors were coming from? Are they going to persist? Should I be worried? How'd u find that? Thru the report?

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #20 on: April 10, 2007, 08:02:34 pm »
prepared missions, what does that mean? Was that where the errors were coming from? Are they going to persist? Should I be worried? How'd u find that? Thru the report?

It's the missions that were being offered to players just as the server shut down -- usually there aren't any, but once in awhile they turn up.   

They're pretty much irrelevant (since those players can't be logged on as the server comes back up) so we clean them out.  There's a slight difference between how they're stored and how the other objects get stored though, so the cleaner wasn't taking that into account -- should be good now (crosses fingers).

If you're feeling paranoid and want to avoid them entirely, the only way I know is to make sure there's no one on the server on the last shutdown before a clean.  (E.g. bring the server up and right back down before a clean.)    I can't remember which admin tipped me off to that approach... S'cipio maybe? BBJones?  Skull?

I found it the old fashioned way - with a hunch and a hex editor.  Search for "AVtPreparedMissions" if you're really curious ;)

dave

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #21 on: April 10, 2007, 08:38:13 pm »
Well, do u know if DarkElf's Db cleaner cleans out shipyard purchases? That'd be a good reason to start the server back up and let it run a turn with a maintenance script in...

Hey, DH has said your cleaner isnt as good as Darkelfs. Why is that? DE's sometimes seems to keep cleaning the DB after yours has fits and stops working.

How are the two DB cleaners different in how they work the DB? Curious. Seems last update to DE's DB cleaner was in 2004... Do you have his code?

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, can you link DH the latest copy of your EDDBEDIT?
« Reply #22 on: April 10, 2007, 08:59:37 pm »
Darkelf's is more stable because it isn't trying to work with much of the structure inside the objects.  The outer wrapper of most objects is pretty similar, so (AFAIK - I don't have the actual code) his just grabs objects, keeps/discards them based on type, and doesn't maniplate their inner works.

I started building this thing as an editor, and just threw in the cleaning as a feature, so it actually tries to break down and reconstruct the inner structure of the objects as well - which led to a lot more complexity and a lot more bugs.  Every time we run across a new object type or format I wind up revising the related cases. 

If I had it to do over again from scratch .... <shrugs> KISS isn't a bad principle  ;)

dave

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #23 on: April 12, 2007, 03:14:59 pm »
I think the column (vertical hexes) and rows (horizontal hexes) are reversed in your editor...

Offline NuclearWessels

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

You sure you didn't just knock your monitor on its side in a fit of administyria?  or is that adminicide? :D

Thx Diz, I'll take a look at it when I get home.

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 #25 on: April 13, 2007, 09:41:06 am »

OK, it wasn't a very intuitive setup - asked you for the row (y coord) first, then the col.

I've reversed the order and made the prompts a little clearer

dave

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #26 on: April 13, 2007, 10:05:22 am »
I'll D/L the new version unto THOR tonight and start using it. Thanks... Didnt want to accidently end up transporting a player into enemy space... cept Hexx mb...

Offline NuclearWessels

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

I'll see if I can scrounge up some time today to look at some of the other editing features you suggested.

dave

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #28 on: April 14, 2007, 11:22:25 am »
Dave, I d/led the new editor and saw u changed the hex coordinates for editing hexes to X and Y. Nice. That worked.

But when I went to change Soreyes to the ISC race, it asked me to select a new homeworld and input the coordinates row then column or vice versa. I tried 45,15 and the editor went crazy. I guess it doesnt like the comma. Then I tried just the row... and nothing happened. Then I tried using two numbers like this: 45 15 and that worked. But I'd like that part to prompt just like editing a hex so there's no confusion. I also dont know if it's reversed like it was, so Soreyes may end up in southern fed space or in ISC space.

But why select a Homeworld anyway? Why not just select a new hex?

Which brings us to a similar issue... Editing a players hex and where he goes uses the old row and column.

So as the editor works now... Editing a Map hex prompts you to use X and then Y. Editing a Players Race prompts you to select a homeworld using the row and column at the same time on one prompt and then editing a players hex coordinates uses the row and then column, so there are 3 different ways hexes are chosen on your editor. Can you fix so that it's all two prompts, one for X and then another prompt for Y for Map edits, Player location edits and for player race homeworld edits?


Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #29 on: April 14, 2007, 12:51:25 pm »
I'm a dumas. That shoulda been a PM to u dave... Chuut apparently read that and jumped us on the move into fed space! Indeed, the row and hex for hex assigment is flipped for changing a player's location on the map and probably is too for homeworld assignment.

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #30 on: April 14, 2007, 02:00:03 pm »

No sweat Diz, completely forgot to check those when I corrected the other one.

And about the PM questions - yes, I can add a feature to report total battles and PP per race, but to get the number of battles won/lost would require going through the server logfile, not the saved-game file.  (It's totally feasible, but the editor probably isn't the right beast to tackle 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 #31 on: April 14, 2007, 06:53:09 pm »
OK Diz, the interface changes have been applied and the new reporting features are in place.

EDITED: note - the empire prestige totals are players' lifetime prestige, which includes the default amount required to start them off at the rank of captain.  You now have to enter this amount (from the "Captain" line in Score.gf) to get it corrected. 

...For SGO7 just enter 15000 when it asks ;)

Oh - the racial "switch sides" feature is in there, but I haven't tested it AT ALL yet, so don't risk it.

dave
« Last Edit: April 14, 2007, 07:30:22 pm by NuclearWessels »

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #32 on: April 14, 2007, 08:06:14 pm »
Oh, so awesome. I was having a tough time doing it myself... lol

These features are awesome. I'm posting them soon... :D

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #33 on: April 16, 2007, 05:59:03 pm »
OK, the racial "switch sides" feature seems to have survived testing ok.  This will swap a race's political alliances - former enemies are now friends, former friends are now enemies.

(Menu options in order: E for edit, T for tensions, S for switch sides, then pick the race that's going to defect.)

dave

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #34 on: April 16, 2007, 08:09:06 pm »
What if it's a 3 way?

Offline NuclearWessels

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

Hmmm, I guess if it was a 3 way then things would get a little odd - suddenly you'd be allied with 2 of the three sides and enemies with the other.

dave

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #36 on: April 16, 2007, 08:55:23 pm »
Not a problem. 3 way servers are far and in between.

Your editor allows me to fully repair and resupply a ship. Is there a way to strip supplies and damage a ship? I remember this single player script called Khan or soemthing where you were kirk and had to signal the reliant and taunt her upon which she would turn to engage you, but the enterprise you commanded was hit at the beginning of the scenario with random damage. Could an option be put in for both stripping supplies and another for damaging a ship perhaps in severity of percentages?

Here's why... Capt Jeff had secret VC's on one of his storm season servers. I'm considering also having them, but one idea is to have a capital ship player from one side be made to return from a secret mission and have to make it back to base from deep behind enemy lines for a VC point during a prime time period... Stuff like that. But beyond the scope of the general server, a special interest server could really utilize a feature like this to simulate battle damage to a fleet and stuff... It's be a fantastic tool. Is it possible that'd work out in a future version of your editor?

Offline KBFLordKrueg

  • Commander
  • *
  • Posts: 3733
  • KBF CO
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #37 on: April 16, 2007, 09:35:56 pm »
Not a problem. 3 way servers are far and in between.

Your editor allows me to fully repair and resupply a ship. Is there a way to strip supplies and damage a ship? I remember this single player script called Khan or soemthing where you were kirk and had to signal the reliant and taunt her upon which she would turn to engage you, but the enterprise you commanded was hit at the beginning of the scenario with random damage. Could an option be put in for both stripping supplies and another for damaging a ship perhaps in severity of percentages?

Here's why... Capt Jeff had secret VC's on one of his storm season servers. I'm considering also having them, but one idea is to have a capital ship player from one side be made to return from a secret mission and have to make it back to base from deep behind enemy lines for a VC point during a prime time period... Stuff like that. But beyond the scope of the general server, a special interest server could really utilize a feature like this to simulate battle damage to a fleet and stuff... It's be a fantastic tool. Is it possible that'd work out in a future version of your editor?

That sounds like fun Dizzy.
I remember that scenario was the opening of RDSL, with a ship from each side behind enemy lines. It was a exciting hunting all over for it.
I remember KBF Lord Saxon flew the Coaliton ship (I forget what it was he had, tho) and he made it.
The Alliance Doppleganger (also forgotten..it's hell gettin old  ::) ) was not so fortunate.  ;D
Lord Krueg
KBF CO
We are the Dead

Offline NuclearWessels

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

It's aleady in there Diz,

select E for edit, P for player, enter the player name, then S for ship, then Y to confirm, then you'll see a whole buttload of different things you can do to the ship.  Have a play with it, you can damage or repair any ship system, set precise supply amounts, etc etc.

dave



Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #39 on: April 16, 2007, 10:39:26 pm »
I've seen that. But selecting values are permanent for the ship. That may be good in a way, but damaging a ship's warp engines in this fashion wouldnt allow them to steal parts off ships in combat to repair them. However, I may rather have it like that... setting a permanent reduction in warp power to simulate the degradation/damage of warp engines/dlithium crystals so that auto warp repair in mission will not happen. But then that leaves me to set the systems to be damaged. Your editor allows me to permanently add or subtract values, not black them out so they may be repaired if the ship finds spare parts on its voyage home.


Ultimately what I might need to do is create an account myself, assign it 50 Tbombs and smash it up a bit. I can then set the warp power to whatever ratio, reset any supplies to whatever amount and then change the ship's location to anywhere on the map I choose. Then hand the account info over to whatever side needs to do the job.

But rather than doing that which is quite involved... I'd like to simply have a feature that will add 'repairable' damage to the ship in set amounts instead of permanent damage of the set values feature already included. I just dont know if that is possible.

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

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #60 on: May 08, 2007, 10:24:45 am »
Would a forum admin plz relocate this thread to the D2 Admins Forum plz and sticky?

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #61 on: May 11, 2007, 05:36:03 am »
                                 BUMP!!!!!!!!!

Would a forum admin plz relocate this to the D2 Admins forum plz?
[/b]

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: ED, Comments on your EDDBEDIT editor!!!
« Reply #62 on: May 16, 2007, 06:03:08 am »
bump