Author Topic: Custom ship editor: build ships up to size 128x128 (v0.3.2)  (Read 7331 times)

kajacx

  • Map Maker
  • *****
  • Posts: 139
  • PRPL custom tools creator
Custom ship editor: build ships up to size 128x128 (v0.3.2)
« on: December 20, 2016, 08:08:52 pm »
NOTICE! There is currently a wierd bug with copying ship data from the PF editor via clipboard. It is easily bypassed by pasting the data into a text editor first and then copying them again. I will hopefully be able to fix this soon, sorry for the inconvinience.

UPDATE to v0.3.2: Added a custom modules adder script for NPC ships. Aslo, custom module adder scripts can now be automaticly copy-pasted by setting the map names in the module file.
UPDATE to v0.2.2: Fixed issue with large custom modules.
UPDATE to v0.2.1: Custom modules can now be allowed to collide with other modules (by setting doesCollide:false), plus mirror rotation bug fix.
UPDATE to v0.2.0: Ship parts are here! Create and place entire portions of ships! Saveable Ship parts! Yaaay!
(click to show/hide)

Have you ever wondered how a 52x47 ship would look like in the ship editor? Well, wonder no more!

(click to show/hide)

But wait, isn't the max ship size 35x25? Well, not anymore. I have been working on a custom ship editor that will enable larger ships, different brush sizes for hull editing, custom modules and mirror modes for symetrical ships. This is how it currently looks like:

(click to show/hide)

Features:
  • Build ship with maximal size of 128x128.
  • Import/export ships from/to default PF editor back and forth with 3 clicks (and one alt-tab).
  • Place custom modules on your ship like any other module. Automaticly generates a moduleAdder.prpl script, similar to planetfall's master script on save.
  • Use different brush sizes for hull editing.
  • Use mirrors to easily build symetrical ships. Works with both hull and modules.
  • Works on Windows, Mac, and Linux (you need mono on Mac and Linux for saving ships to the .dat file).
  • Handy shortcuts like shift+mouse wheel to change hull type and selected module, or alt+mouse wheel to change the brush size.
  • In-program tutorial controls and on how to import/export ships.
  • An option to make your ship build instantly (without PRPL) or to add the CommandHQ module.
    (click to show/hide)

How it looks in-game:
(click to show/hide)

Finally, large ships take forever to build. You could use something like
Code: [Select]
<-shipID CONST_SHIP_CMBUILTAMT <-shipID CONST_SHIP_CMCOST GetShipAttribute 1 sub SetShipAttributeto insta-build them, however I would discourage that, instead a slight modification could be used to merely speed the cosntruction of the Command module instead of outright instabuilding.

Also I forgot to mention, this project is open source, feel free to view my terrible programming habbits at your leisure.

Finally, the program runs in Java 8, so I hope you have that installed, other that that... enjoy! Suggestions welcomed.
« Last Edit: November 11, 2017, 01:51:12 pm by kajacx »
Why do work yourself, when you can write a program that will do the work for you.

Dark Ambition

  • Map Maker
  • *****
  • Posts: 290
  • My map upload schedule operates in Valve time.
Re: Teaser: Custom ship editor: build ships up to size 128x128
« Reply #1 on: December 20, 2016, 08:13:21 pm »
Woah
MUGANI? HAK HAK HAK!

GoodMorning

  • Map Maker
  • *****
  • Posts: 3198
  • (Pusillanimous)
Re: Teaser: Custom ship editor: build ships up to size 128x128
« Reply #2 on: December 20, 2016, 08:16:19 pm »
Please put the code for that up when you're done.

Also, what's the PRPL+ tab useful for?
A narrative is a lightly-marked path to another reality.

kajacx

  • Map Maker
  • *****
  • Posts: 139
  • PRPL custom tools creator
Re: Teaser: Custom ship editor: build ships up to size 128x128
« Reply #3 on: December 20, 2016, 08:20:50 pm »
The "PRPL+" tab is for my extension of the PRPL language that has local variables, script including and multi-line comments. The compiler already works, I just need to create some basic GUI where your can select you particlefleet folder and display compile errors, it's probably comming this week, as a christmas present to the PF commnity :3
Why do work yourself, when you can write a program that will do the work for you.

GoodMorning

  • Map Maker
  • *****
  • Posts: 3198
  • (Pusillanimous)
Re: Teaser: Custom ship editor: build ships up to size 128x128
« Reply #4 on: December 20, 2016, 08:27:01 pm »
Well, I'd still argue against locals, but I hope that V can use some of your editor code.
A narrative is a lightly-marked path to another reality.

Sorrontis

  • Map Maker
  • *****
  • Posts: 1894
  • CW4! CW4! CW4! CW4! CW4!
    • Sorrontis Games
Re: Teaser: Custom ship editor: build ships up to size 128x128
« Reply #5 on: December 20, 2016, 08:47:52 pm »
Well then. That's ... wow
The Map Makers are here to help!

"If you want others to be happy, practice compassion. If you want to be happy, practice compassion."

GoodMorning

  • Map Maker
  • *****
  • Posts: 3198
  • (Pusillanimous)
Re: Teaser: Custom ship editor: build ships up to size 128x128
« Reply #6 on: December 20, 2016, 08:50:47 pm »
On second thoughts, don't put it up, I don't know if the game will properly handle ships that large. And we don't want overlarge ships just for the sake of it. People already build unnecessarily large ones.
A narrative is a lightly-marked path to another reality.

Nicant

  • Map Maker
  • *****
  • Posts: 425
  • hello!
Re: Teaser: Custom ship editor: build ships up to size 128x128
« Reply #7 on: December 20, 2016, 09:05:26 pm »
Gosh Darn, thats crazy!  :)
Bottom text

kajacx

  • Map Maker
  • *****
  • Posts: 139
  • PRPL custom tools creator
Re: Teaser: Custom ship editor: build ships up to size 128x128
« Reply #8 on: December 20, 2016, 09:08:35 pm »
I have tested the ship from the screenshot in level editor, seemed to work fine, however I agree that needlessly large ships can be a problem, for example they can't even accept energy fast enought to replenish ammo, not to mention they take forever to build.

These issues are fixable with PRPL, moreover the ship from the screenshot is meant to be an ultimate weapon that will defeat a boss in a map that I plan to make some day (spoiler: I will never get around to acctually make it), only consructable in the last stage of the game.

So I will leave the decision wether or not to use my program to the mapmakers, unless these ships cause crashes or massive lag, in which case I will pull it off.

One more idea: consider a massive hollow shield, that can be used as movable city wall, that could be interesing. Banning the program because some people coukd use it to create needlessly large ship isn't good enough reason for me to prevent other people with great ides from having it.
I hope you understand my resoning.
Why do work yourself, when you can write a program that will do the work for you.

GoodMorning

  • Map Maker
  • *****
  • Posts: 3198
  • (Pusillanimous)
Re: Teaser: Custom ship editor: build ships up to size 128x128
« Reply #9 on: December 20, 2016, 09:15:09 pm »
Certainly. I just ask that you move with caution. (Personally, my first response was "gimme gimme", as of Ogun to a very large gun.)
A narrative is a lightly-marked path to another reality.

Sorrontis

  • Map Maker
  • *****
  • Posts: 1894
  • CW4! CW4! CW4! CW4! CW4!
    • Sorrontis Games
Re: Teaser: Custom ship editor: build ships up to size 128x128
« Reply #10 on: December 20, 2016, 09:37:32 pm »
Let's not forget that massive ships take a lot of computational power. This is fine for newer rigs, but we have to be careful so that we don't destroy the game for those with lower specd computers.
The Map Makers are here to help!

"If you want others to be happy, practice compassion. If you want to be happy, practice compassion."

FOXX

  • Map Maker
  • *****
  • Posts: 922
  • Just Breathe
Re: Teaser: Custom ship editor: build ships up to size 128x128
« Reply #11 on: December 21, 2016, 08:04:57 am »
I don't know how ships that large work in the game and they must take some time to build but i like this idea very much.
Good luck with your project Kajacx
The FPAF
For My Maps and Ships!
Including  CUSTOM MODULE MAPS & SHIPS

TonnyT

  • Jr. Member
  • **
  • Posts: 27
  • CEO of Novus Imperium Corp.
Re: Custom ship editor: build ships up to size 128x128
« Reply #12 on: December 21, 2016, 09:25:42 am »
Dear lord, that seems a bit excessive.
Nevertheless, great work.
Novus Imperium Corporation
CEO: Tony Carlisle

Today our concern must be with the future. For the world is changing. The old era is ending. The old ways will not do.

-President John Fitzgerald Kennedy

Keeper Decagon

  • Map Maker
  • *****
  • Posts: 498
  • Going Nuclear.
Re: Custom ship editor: build ships up to size 128x128
« Reply #13 on: December 21, 2016, 09:26:23 am »
Alright, so I couldn't help myself and I had a bit of a play with the editor. I didn't go too mad, but I did make this:

(click to show/hide)

As you can see, I originally had an assorted bunch of ships that slotted together to form a bigger one, the Scaffold, using the standard editor. That left it with some downsides, like unable to move efficiently as one, etc.

Now, I have used this new editor to glue this amalgam of parts together to form a whole, which I'd say looks and works far better than the separate parts did. So yeah, pretty happy with this.

All I can say is, a big thanks to kajacx for making my Scaffold look pretty. :D
"For me, there is no honour or glory. No praise to be had for what I do. I fulfill my purpose for the protection of all... neither of us are going to make it out of here alive." - ?? ??, 145th CE

Zoura3025

  • Full Member
  • ***
  • Posts: 102
  • Ship Manufacturer :out-of-date:
Re: Custom ship editor: build ships up to size 128x128
« Reply #14 on: December 21, 2016, 05:04:46 pm »
I like this. I like this a lot. If this was official dlc, I would buy it. I might download and try it later,
(09:06:07) Zoura3025: But for us diehard fans: "Time is Sanity"