Planetbase

Planetbase

Planetbase Workshop
Here you can download translations or challenges for Planetbase. Just subscribe to the desired item and it will appear in the game.
Learn More
 This topic has been pinned, so it's probably important
_provector Nov 19, 2019 @ 2:44pm
CHALLENGE EDITOR v 1.0
I have created a fully UI'ed Challenge Editor for Planetbase, based on the xml guide provided on the forum.

EDITOR WEBPAGE:
https://www.nexusmods.com/planetbase/mods/37

You will need Java >= 8 to run it:
https://www.java.com/en/download/

Source Code:
https://github.com/provector/jPBCE

Known Bugs:
- UI Can be glitchy sometimes, just switch through tabs to fix it.

All settings in the editor are "OPTIONAL" meaning you can modify one of them and the game engine is "smart" enough to default any other settings based on a planet-class.

"Save Challenge" option will try to save to %HOME%\Documents\Planetbase\Challenges. On some systems, you might get an error. Try creating the directory or use "Save Challenge To" option. It will automatically generate expected files in \Challenges directory. When you start the game your challenge should appear on the list under "JPBCE Editor" group.

Editor also supports storing your challenges for future editing. Use option "Save Editor File" and "Load Editor File" subsequently. Extension is .jpbce, but they are essentialy JSON format. I highly recommend doing this, as currently there's no way of reading back xml file (maybe in the future? with saves support?)

I have tested it as much as I could so please post all the bugs/errors here. If I find free time I'll try to address them. Also, if it gets popular enough I might add Steam Workshop upload option and campaign support.

Enjoy!

_provector
Last edited by _provector; Feb 8 @ 2:59pm
< >
Showing 1-15 of 22 comments
GameMaster Nov 30, 2019 @ 4:38pm 
Ok, I've been using this and I've been trying to build a challenge and I've been banging my head on trying to get the terrain flattened enough for a large base.

Are there any tips for this?
_provector Nov 30, 2019 @ 8:32pm 
Yes, use only two settings from the Terrain tab: Crater Density % (set it to 0), and Height Multiplier % (I usually set it to 1). That will give you a completely flat map. I'd recommend setting height multiplier and the other one to at least 10% (play around to find a setting that suits you), otherwise you won't have any hills to build a mine against.

Also you will see lots of rock props around that flat terrain. Once you build over them (you should be able to) they disappear.
GameMaster Nov 30, 2019 @ 8:47pm 
Originally posted by _provector:
Yes, use only two settings from the Terrain tab: Crater Density % (set it to 0), and Height Multiplier % (I usually set it to 1). That will give you a completely flat map. I'd recommend setting height multiplier and the other one to at least 10% (play around to find a setting that suits you), otherwise you won't have any hills to build a mine against.

Also you will see lots of rock props around that flat terrain. Once you build over them (you should be able to) they disappear.
Thanks, I'll keep that in mind.
_provector Dec 1, 2019 @ 4:06pm 
No problemos. Let me know how you like (or not) the editor so far.
News:
1) An updated version of the "Planetbase Challenge (Mission) Editor" program has been released.
Version 1.0.E.

2) The program guide in English has been released:
https://steamcommunity.com/sharedfiles/filedetails/?id=1991143520

3) The program guide in Russian has been released:
https://steamcommunity.com/sharedfiles/filedetails/?id=1983563107

UPDATE 1.0.E Changelog:
------------------------------
First of all big thanks to anyone who reported issues and suggestions. Please continue as this is the only way we can all improve the editor to make it a useful tool for everyone :)

Bug Fixes:
- Fixed misspelled strings issues for robotics facility and cabin
- Removed connection option as the game didn't allow it
- Fixed duplicate editor filename extension on selected overwrite
- Fixed UTF8 encoding for XML file

QOL/Features:
- Added Guards as selectable start option
- If the autocreate fails to complete an error message will appear
- Overwrite prompt for each save option if the target file already exists
- Save to options now "remember" the last selected directory
- Added option for generating translation description file with a custom prefix
Last edited by NeoRider7; Feb 9 @ 12:05pm
_provector Feb 11 @ 11:03am 
UPDATE 1.0.I Changelog:
------------------------------
Special thanks to NeoRider7 for testing and community support.

Bug Fixes:
- Fixed typo in planetbase title
- ReachWelfare Spinner has now max value of 100 as per docs
- Fixed bug where empty character objective field would throw a silent Exception and no error dialog

QOL/Features:
- Replaced Integer field in Tables with a Spinner
- Added button to remove a specific row from objectives table
- Added checkbox for starting specialization and resources to distinguish settings from default planet values
So i am a newb...shameless and pure.....where do i save the challenges to?
If you have Planetbase installed on windows use "Save Challenge" it will automatically put the required xml files in %User%\Documents\Planetbase\Challenges. If "Save Challenge" option finished OK just run the game and the challenge will appear on the challenge list under set company name (default jPBCE Interstellar)
Originally posted by Mr Archon:
So i am a newb...shameless and pure.....where do i save the challenges to?
Most likely you can find the answers to your questions in this guide: https://steamcommunity.com/sharedfiles/filedetails/?id=1991143520

If the question still remains, please write it in more detail.
Contact us with any feedback, questions or suggestions!

Thank you for creating new challenges for the game Planetbase!
Wanted video blogger who will help make a video about this program "Planetbase Challenge (Mission) Editor"!
Let me know if you can help. Thanks!
I'm confused about what to do after downloading it and opening the zip file. Like, what file do I run?
It also keeps deleting its own files when I leave it for a bit.
@Fallen Pro, thank you for your question and that you are creating new challenges for the game Planetbase. Below I will write the answer:

1) download the program on the website: https://www.nexusmods.com/planetbase/mods/37

2) it is enough to download only one file with the latest version.
To date, the latest version number is: "jPBCE (1.0.I) All Platforms.zip."

3) in the zip file there is only one file called "jPBCE-Planetbase-challenge-editor-1.0.I.jar"

4) make sure you have Java 8 installed.
The version number must be 8 or higher.
If you do not have such a program, then you can download it here: https://www.java.com/en/download/

5) You can locate and run the file "jPBCE-Planetbase-challenge-editor-1.0.I.jar" from anywhere on your hard drive.

6) After starting the file "jPBCE-Planetbase-challenge-editor-1.0.I.jar", you will run the program "PBCE Planetbase Challenge (Mission) Editor".

7) using the program "PBCE Planetbase Challenge (Mission) Editor", you select the desired settings with the mouse and create your own challenge.

8) When you click save settings, files with your new challenge are saved in the directory on your hard drive where the Planetbase game finds out about the existence of new challenges.

"Save Challenge" option will try to save to "% HOME% \ Documents \ Planetbase \ Challenges".

Please note that the name of this directory is different from the directory where you have installed the game Planetbase.

9) On some systems, there may be an error saving the files if such a directory does not yet exist on your hard drive.
In this case, first create the "Challenges" directory manually at: "% HOME% \ Documents \ Planetbase \ Challenges".
After that, the "PBCE Planetbase Challenge (Mission) Editor" program will be able to save files with your new challenges to this directory.

10) When you start the game your challenge should appear on the list under the "JPBCE Editor" group.

11) The usual challenge consists of two files. One of these files is a file with textual information about the challenge in the language you need.
By default, the PBCE program creates a language challenge file in English.

12) If you need a different language and if you use an alternative translation of the Planetbase game, so that the description of your challenge is correctly read inside the game, select the "General" tab in the PBCE program. On this tab, find the column "Generate additional langugage Desc file:" and put a checkmark there.

13) Next to the checkmark, type in two letters that correspond to the abbreviated name of the language you need.

14) In other words:
If you are using a language different than English please put a two letter prefix (not case sensitive) of the language you are using.
It will generate another file next to the existing English description with the appropriate prefix.
This way your description will automatically appear in-game menu when using custom language.
Unfortunately, at the moment there's no option to have multiple descriptions from the editor UI, but that might change in the future.
For now, you would have to edit the description XML manually if you want to have separate briefings for English and custom language.

15) That's all. Read a more detailed description here: https://www.nexusmods.com/planetbase/mods/37?tab=description or in the guide with the description of the program "PBCE".

If you still have questions, please let me know.
We will try our best to help you.
It is advisable to provide a detailed description of your problem and attach screenshots.
In general, the "PBCE" program rarely has problems and everything works fine.

Thank you for creating new challenges for the game Planetbase!
_provector Feb 17 @ 10:30am 
If you are sure that you have Java installed, right click on the jar file, select "Open With..." then select "Java Runtime SE"
I used a program called cool file viewer to break down the .jar file but I can't find the executable file that opens the program. I can only find thousands of .class files
< >
Showing 1-15 of 22 comments
Per page: 15 30 50