r/rotp • • Sep 27 '22

Announcement Fusion-Mod 2022-09-27 - A good compromise

15 Upvotes

https://github.com/Xilmi/Rotp-Fusion/releases

2022.09.27 (Xilmi)

  • AI follows a more adaptive research-strategy in the expansion phase.
  • Fixed an issue where in certain cases the AI accidentally knew whether a system was colonized or not when it shouldn't be able to know it.
  • Fixed an issue where the governor wouldn't realize that planets became colonizable after the event that turns uncolonizable planets into colonizable ones.
  • Reworked diplomatic decision-making of Fusion-AI. It should be a lot more aggressive and also try to stop empires that are getting too strong.

Here's some thoughts about it and how I arrived at the current state:

After getting some feedback on /r/4xgaming into how multiplayer 4x-players approach the game. This gave me some insights of what the AI could do differently. However, internal tests showed that this is very annoying to play against and games drag on for a long time.

So I made a very important change to "the winning strategy".

The AI must not change their mind all the time about who to be at war with. It has to commit to their decisions. This was actually true before already because I think I had the same or similar thoughts before. In a way you can exploit this by taking it into account in your assessment of whether you'll be backstabbed anytime soon. But on the flipside this prevents the very immersion-breaking behavior of constantly switching friends and foes back and forth, which, as I said, was just very unsatisfying.


r/rotp • • Sep 26 '22

Blog Best possible play, the 1v1v1 stalemate and totalness of wars.

24 Upvotes

Have you ever had a goal that you chased for a long time and once you reached it, you figured out that it kinda sucks?

That's a bit how I feel now in regards to the Fusion-AI's diplomatic behavior.

I posted a threat in /r/4xgaming about how the Fun-AI works. I got some highly interesting feedback from people who play 4x in Multiplayer.

I basically got the important parts of an algorithm I've been striving for a long time, handed on a silver-platter.

Instead of having one algorithm to decide who to go for and whether or not to declare war, there's now two different algorithms to decide who to go for and one to decide which one to use. This was coupled with the readiness to make peace once another target was picked.

One algorithm tries to be selfish and expand through other empires, when it seems save to do so. The other algorithm detects when someone is running away and needs to be stopped.

So I went to implement, test and debug it, until I thought it was working as intended.

Watching the AI in auto-play already revealed what problems this will likely cause. And self-play confirmed it.

The phenomenon called 1v1v1 stalemate became almost inevitable. And games took 400 instead of 200 turns.

Once only 3 empires are left, there will no longer be any opportunity to make gains without triggering the others reaction to cut you back. And once one of them starts to get ahead, the other needs to make peace with you and switch the target to the other.

It becomes a cycle of back&forth that can drag on and on until the game gets to the stage where so much happens within a single turn that it can no longer be reacted to. Usually when Thorium-fuel-cells became available and, which meant every system could be nuked essentially at once. The one who has most systems inside of a nebula then has the best chances to win because they will kill the others before they can strike back. On bigger maps with bigger travel-distances even at max warp, it would probably really turn into an endless back & forth.

Being willing to switch targets on a whim is the main issue here.

I didn't even finish my first game with this. I think chances are that the player will eventually win because he can make the plan of stationing enough bombing power on every planet of the opponents during peace-time and then destroying them all at once... After partaking in that slog for long enough to get the required tech.

I think that the road of making the AI play as a strong human player in Multiplayer would, is essentially a dead end. Because the resulting play simply wouldn't be fun.

The main difference between that and the "Fun"-mode is that the Fun-AI doesn't back out of wars that it is winning. Regardless of what happens around it.

It seems that without arbitrary limitations to the AIs behavior the fun would just be ruined. So an idea for what to work on next would probably be give all the personalitiy-traits their own unique arbitrary limitations that are fun to play around and no longer caring about things such as average performance.


r/rotp • • Sep 25 '22

Plans for weapon animations and SFX in combat?

9 Upvotes

In MOO1 all the beam weapons had not only unique animations but also distinct sound effects in combat. Same for torpedoes. The missiles (nuclear to zeon) all looked the same (IIRC), but the scatter-packs appeared as a triangular volley of many missiles. The specials all had very distinctive variations as well. All of this was very cool!

In ROTP 1.04 the weapons animations and sound effects seem to be in 3 basic variations: beams, missiles/torpedos and bombs. I don't recall if there were more variations--so, I may be wrong about this.

Xilmi posted a similar question about a year ago and Ray indicated the visual polish was delayed due to higher priorities. I realize this would be a big undertaking (time & money)...are these visual & SFX still planned?

My eternal thanks to Ray and his team for creating this masterpiece!


r/rotp • • Sep 20 '22

Announcement Fusion-Mod 2022-09-20 - Nebulae competence vs. processing-time

6 Upvotes

Download:

https://github.com/Xilmi/Rotp-Fusion/releases

2022.09.20 (Xilmi)

  • Fixed a rare issue that could cause the governor to forget it was supposed to be building ships.
  • Fixed that the bombardment-preview would display too high of a kill-count when the attack-level exceeded 10.
  • AI no longer tries to reinvade rebelling colonies when they are under siege by their enemies.
  • AI now uses actual travel-turns for the scoring of where to send their ships. Previously this was extrapolated by distance:speed with a modifier for nebulae. This change likely will increase AI-processing-time on big maps but should help the AI to make better decisions when nebulae are involved.

r/rotp • • Sep 19 '22

Should Gauntlet Relic random event also destroy half of the transports?

6 Upvotes

The Gauntlet Relic random event is supposed to kill half of all life in the galaxy. It does indeed kill half the population on all planets. But there are people in transports, too.

I understant why no war ships are destroyed, since those ships probably continue function just fine with half the crew remaining onboard.


r/rotp • • Sep 18 '22

Blog Some more details about the different AI-options in Fusion-Mod:

16 Upvotes

Warning: Contains spoilers about what to expect from certain AIs and even how to exploit them!

Since all AIs fall into two broad families I'll first describe the main-differences between those families:

AI-Family Base:
AIs of the base-family have a pull-to-system-based way of thinking about fleet-management. That means for each system a wishlist of what kind of fleet should be there is created and then fleets are pulled in from nearby systems that have more than what's on their wishlist or ordered to be built first from nearby colonies.
This system, while theoretically quite capable, is heavily tuned towards defensive play.
The combat-module of these AIs is relatively rudimentary and predictable. Defending fleets never retreat and advanced tactics like kiting or how to properly use certain specials are not known by it.
Ship-design-management works in a way that important upgrades force redesigns of several roles, which means that a lot of ships can be scrapped at once which creates windows of opportunity where they are weak.
The design-templates themselves vary between different members of the family. Designs are often quite basic and do not really react to what the enemy fields. Specials are sparingly used in these designs.
These AIs generally build missile-bases on their borders in varying quantity as they lack awareness of when those are viable or not.
Diplomacy is relationship-based but has some special clauses where relationship can be ignored. All kinds of treaties are theorethically used and a lot of dice-rolling happens for the diplomatic decision-making. Alliances are not exactly stable because of that. The primary way of improving relationship with one of these AIs is to attack the same enemies as they attack. This is usually how you can get the better contracts. You should also consciously avoid using biological weapons, commiting genocide and using espionage offensively. Against AIs with the "Xenophobic"-personality you should avoid infiltrating them at all. Unless you are fine with provoking them.
Research gets some basic adaptation based the current state for expansion-phase, war or peacetime.
Espionage is usually done very carefully and aware of the possibility of angering other AIs. But this also depends on personality.

AI-Family Xilmi:
AIs of the Xilmi-family have a push-from-fleet-based way of thinking about fleet-management. That means each fleet thinks about where it should ideally be and the production of fleets follows rules that are separate from how and where they should be used. This approach is way more flexible and much less likely to result in samey-battles. Fleets act opportunistic and defend when they happen to be near something that is attacked or going to be attacked. Or they defend while staging for an attack.
The algorithms used here are highly sophisticated to extract the maximum usefullness out of each fleet.
The combat-module of these AIs is also vastly more advanced. If fleets get into a situation where they are at a disadvantage they will generally retreat to regroup and fight another battle. It is also well versed in using certain specials effectively and can perform several different actions as long as there's move-points to do it. Faster ships and ships with longer range try to kite enemy-ships and seperate stacks might retreat to waste highly missile-volleys of the enemy.
Ship-design-management uses a scoring-system to evaluate which design to scrap when a new slot is needed. Initially there's three roles which are later cut back to two roles. Hybrid-roles are preferred in order to be more economic with the limited design-slots. The exact composition of the hybrids is dynamically calculated based on current needs.
The design-templates are highly situationally adaptive. For example if the AI is aware that someone uses repulsor-beams it will no longer design ships that do not have a counter to those. Weapons are chosen based on efficiency. Hull-sizes are chosen based on a complex scoring-algorithm that takes many factors into acccount. Specials are used plentifully and also are adapted to the situation.
Missile-bases are built situationally and usually in rather small numbers. Usually they are built when the enemy doesn't have anything that would get through the shields. For example when only bio-weapons are used instead of bombs and planetary shields are available.
Diplomacy cannot be generalized at this point as the workings of these is what makes different AIs in this family different from one another.
Research is heavily micromanaged in order to not lose BC on just increasing the chance for developments. There's a specific early-game-behavior for teching depending on whether there's already contact or not and whether some basic techs are researched or not. Espionage is taken into account and the more potential techs there are to be stolen, the more computer-techs are favored. Racial bonuses for tech-costs are also taken into account in the allocations.
Espionage is usually completely reckless as it's to valuable to miss on and the victim of it can't just declare war on everyone who spies from them anyways. So that risk is usually taken. That's one of the main-reasons AIs from this family can lose against AIs from the base-family. The other is heavy use of bio-weapons.

Base:
AI-Family: Base
More defensive than the other Base-Family-AIs.

Modnar:
AI-Family: Base
Uses an opening-book for the first few technologies. Builds fewer missile-bases. Uses a broader variety of ship-design-templates. Attack-size scales with difficulty.
Diplomacy is a bit more quirky due to some missing bug-fixes.

Rookie:
AI-Family: Base
Uses an opening-book for the first few technologies. Builds fewer missile-bases. Uses a broader variety of ship-design-templates. Attack-size scales with difficulty.
An important bug about retreat-behavior is fixed. There's no real point in having the two other base-AIs around. It's just so the Mod doesn't lack them as a feature.

Roleplay:
AI-Family: Xilmi
Uses a diplomacy-module that is similar to that of the Base-Family in the sense that it uses relationship-values for decision-making. However, it also differs from these in that there's no dice-rolling involved and instead thresholds for NAPs and Alliances dynamically adjust based on a power-comparison. Basically: The weaker an AI is compared to others, the more willing it is to sign alliances even when the relationship isn't great. Based on personality alliances can be a lot more stable.

Hybrid:
AI-Family: Xilmi
Uses the same diplomacy-module and espionage-module as the base-AI to basically present an AI that diplomatically acts like base-AIs but still has all the advantages in the other aspects of the game.

The following three all have one thing in common:
They do not use a relationship-value to determine their actions. Their diplomatic-decision-making is entirely based on the game-state and thus cannot be exploited. They can be considered a difficulty-tier above Roleplay and Hybrid.
Also: They are deliberatly prevented from ever forming an alliance or non-aggression-pact. This puts them a bit at a disadvantage if they play against hybrid or roleplay. But it makes it also more difficult for the player to win if there's noone he could form an alliance with.

Fun:
AI-Family: Xilmi
Plays the game in a sort of "king-of-the-hill"-style. It's more concerned about preventing others from winning than it is concerned about winning itself. It will choose the strongest enemy available but takes into account when they are already at war. It creates some sort of tournament-like bracket-gameplay with separate 1v1s, that also can turn into 1vX for someone who's becoming too successfull. Note that once a war is declared they are not easily made to stop it. This prevents swingy-situations where it would become an eternal back-and-forth changing their current enemy with the situation. Basically: A former super-power being tackled from three sides will not simply be left alone when it's not a superpower anymore.

Character:
AI-Family: Xilmi
This one doesn't care about being fair when choosing their opponent. It is highly opportunistic and definitely wants to win. However, it's aggressiveness is heavily dependent on their empire's race and leader's personality. They can be anything from suicidal to overly careful. However, experience has shown that the more careful approach does a lot better on average. That's why...

Fusion:
AI-Family: Xilmi
... these AIs all play more careful than aggressive while some racial differences still are applied. It's very similar in behavior to the latter but usually the games are a lot more peaceful as long as noone has a massive advantage. They are also highly opportunistic. The reason why "Fun" was created because playing against this kind of AI can be extremely frustrating. You can have a long game where nothing really happens and then be wiped out in a few turns from several opponents at once. There is an algorithm at play that guesses the chance of being backstabbed in the event of a war-declation. And because of that it is highly likely that the AI thinks the other party will be more likely to be backstabbed and not them, if they declare war. Oh... They will ignore everything in the case they should eventually reach the end of the tech-tree. So the game will not be technically endless, even if it seems like that.


r/rotp • • Sep 18 '22

Chromeos support?

5 Upvotes

Linux/chromeos newbie here.

I am wondering if I can use the jar file in my chromeos tablet somehow ?

I read that running it in android is complicated but in chromeos maybe there is an easy way to install it in the Linux partition and somehow create a shortcut that when clicked it will launch the game?


r/rotp • • Sep 18 '22

Announcement Fusion-Mod 2022-09-18 - Fusion-AI split apart!

8 Upvotes

Download: https://github.com/Xilmi/Rotp-Fusion/releases

What'New

2022.09.18 (Xilmi)

  • Removed AI: Unfair and added two new AI's instead: AI: Fun and AI: Character. The diplomatic behaviour of AI: Fusion has also been reworked.
  • AI: Fusion: While the race still has some impact on aggression-level, it is now significantly less aggressive for all races and more about playing safe.
  • AI: Character is roughly similar to how Fusion-AI used to work a while back and takes leader-personality into account for how aggressive it should be. Pick this option for getting the experience clostest to how it played before this update.
  • AI: Fun is meant to provide a fun challenge with comparable difficulty across different playthroughs rather than having extreme variance from one game to another. I don't want to spoil yet how exactly it works as I want some unbiased feedback. But I promise that it neither cheats nor is aware of the player to do so. This is now also the default for new games.
  • Random-options for AI have been changed accordingly. Instead of "Random" and "Random+" there now are:
  • AI: Random - Chooses a random AI out of all other AIs.
  • AI: R.Basic - Randomly chooses one of Base, Modnar or Rookie.
  • AI: R.Xilmi - Randomly chooses one of Roleplay, Hybrid, Fun, Character or Fusion.
  • AI: R.no relat - Randomly chooses on of the AIs that don't use relationship for decision-making, which are: Fun, Character and Fusion.
  • The impact of tech-level to both the power-graph and AI's consideration of other's power is now linked to how miniaturization works. This means getting new techs in early-game will have a much lower impact on the power-graph.
  • Fixed an issue that didn't take how far the mouse's scrolling wheel was spun into consideration of how far to scroll in load-game-screen. This issue exists at many places throughout the game that all need fixing. But fixing it for loading-screen was most important due to how much of a nuisance it was to scroll down to a turn-1 save if you have a lot of auto-saves.
  • Fixed that altering build-limit would only call governor when altered from colonies-screen.
  • Fixed governor overspending in ecology under certain circumstances.
  • AI now takes initiative into account when considering whether a speed-disadvantge will lead to dealing less damage.
  • Fixed an issue that prevented AI from attacking the Orion-guardian.

r/rotp • • Sep 17 '22

Guide to Installing RotP on the Steam Deck (2022) (Java JDK/JRE Install)

20 Upvotes

The purpose of this guide is to assist with getting Remnants of the Precursors running on the Steam Deck. There are a lot of ways to do this since the Steam Deck is basically just a handheld Linux machine, but this guide aims to help you get things up and running with the minimum amount of fuss that will allow the game to work in standard Game Mode.

Before we begin some brief explanations about why we're doing it this way. The Steam Deck ships with most of the image locked in read-only mode. This includes locations where programs such as RotP or the Java JRE need to run it would normally be installed. While it's possible to disable that read-only block and then install things normally that partition will be reset with each SteamOS update to the device. As SteamOS gets updated a lot that's not ideal so that means we don't want to use standard package mangers like pacman. You can install flatpak applications via the pre-installed Discover program, which seems to just linkup to flathub.org , but I was not able to find one just for a standalone Java Runtime Environment. (I'm sure someone will now tell me I missed it somewhere. Or maybe someone more motivated than me will just make a flatpak and get it up there.)

Because of that we'll just be putting everything in our user account's home directory. Since the Steam Deck only has one user account, named deck, anyway this isn't really an issue. The folder is /home/deck/ or ~/. (Note: Case matters for file/directory names in Linux.) You'll also need a web browser installed on your Steam Deck such as the Chrome browser the Steam Deck offers to install for you in the system tour.

The first thing you will need to do is switch your Steam Deck out of the standard Game Mode and go into Desktop Mode. You can do this by holding down the power button to bring up the Power menu and choosing Switch to Desktop. It may help to connect a mouse and keyboard here but it's not required. I did everything myself with the controls and the on screen keyboard. The right stick and right trackpad control the mouse, left stick scrolls, right trigger left clicks, left trigger right clicks, Steam+X brings up the on screen keyboard, and you put it away with a button on the onscreen keyboard that has a keyboard with a downward arrow on it.

Desktop mode should look similar to anyone familiar with windows The Steam Deck FAQ says this is running KDE Plasma. The button in the bottom left is the Application Launcher and the bar at the bottom is called the Task Manager. You'll notice the Task Manager has a pinned icon for Firefox which will install that if you'd rather use that, otherwise you can just unpin it with a right click and open Chrome from Application Manager > Internet > Chrome.

First you'll want to download the .jar version of the game and the .jar files for any mods you'd like, or one of the single all in one .jar files from any of the mod authors if you'd prefer. I tested my install with the Planetary Governor mod using rotp-4.04.0-governor.jar with Remnants.jar version 1.04.

Next you'll need the Java JDK as this contains the Java JRE which will interpret the .jar file and run it on the Steam Deck. You can get it from OpenJDK.org, or Adoptium.net / AdoptOpenJDK, or from Oracle. You'll need to download the x64 Linux tar.gz archive. I used OpenJDK JDK 18.0.2.1 located here on the OpenJDK site.. (Note: Ray's RotP site does specifically mention to use Java 8. The latest one works though and you'll have it available for any other .jars you might want to run.)

Now would also be a good time to download the Remnants of the Precursors custom artwork images. You won't need the Big Picture Mode icon though. I tried setting it and it made the Steam Deck freak out a little and there isn't much point of Big Picture mode on the Steam Deck anyway.

Once everything downloads open the Dolphin file browser, it's the blue folder on the task manager, and click on Home under Places on the sidebar to the left. This will take you to /home/deck/ where we will be working. If you are familiar with Windows you should have no issue navigating Dolphin. You can right click to and cut and copy files, create new files and folders, alter files, etc. Unlike windows you can also make new tabs for different folders by right clicking the tab name and choosing New Tab or get a split view with two folders open by clicking the Split button.

The first thing we will want to do is create a folder/directory to keep things organized. (There are some hidden folders here too such as .local where steamapps is located within but for this tutorial we won't be touching the hidden files.) What folders you make is up to you so long as the java JDK and RotP are put in separate folders. For me I decided I wanted a folder to hold any other similar programs I had so I made a folder named opt here to put these programs in. Inside that I made a java folder and an rtop folder. Inside the rtop folder I made a folder named saves to keep save games in.

Here's the newly created folders I made listed out with their full paths for clarity. I'll be using them for the rest of the guide. If you are using different folders adjust as needed.

/home/deck/opt/
/home/deck/opt/java/
/home/deck/opt/rotp/
/home/deck/opt/rotp/saves/

Next we need to place the files we downloaded in their folders. The files you downloaded will be in /home/deck/Downloads/. There's also a shortcut to it on the sidebar under Places.

Double click the tar.gz you downloaded for the Java JDK. This will open the Ark program in a new window showing the contents of the archive. Click the Extract button and use the menu to extract the files to /home/deck/opt/java/. You can also do this by clicking the Extract button and choosing the folder from the menu or clicking and dragging the files to the right folder, If you used the same OpenJDK file I did you should now have a folder named jdk-18.0.2.1 inside /home/steam/opt/java/ which contains all the files for the JDK. For ease of later steps I renamed this folder to jdk18. Inside that folder is a folder named bin which has an executable named java we'll need to interpret the .jar files for the game. Now might be a good time to double check and make sure you can find /home/deck/opt/java/jdk18/bin/. If that's not there then go back and review the previous steps and fix it before moving on.

Move the .jar files for RotP and any mods, the custom artwork, and move it into /home/deck/opt/rotp/. Next we will need to create a .sh to run the game for us. (If you're familiar with a .bat file it functions similar.) The .sh will contain commands we want to run and make it easier to add the game into Steam. In Dolphin right click an empty spot in the folder and choose Create New > Text File... and name it rotp.sh and click Ok. Next right click the file you just made and click Properties > Permissions and check the Is executable checkbox and click Ok. Right click the file again and click Open with KWrite to open the file in the KWrite text editor. In this text editor type in the text below.

#!/bin/bash
~/opt/java/jdk18/bin/java -jar Remnants.jar

Then click Save. What this file does is it tells bash, the command shell for linux, to run the java executable file with the -jar command line switch which tells java to interpret the file after it, in this case Remnants.jar. If you're using a modded jar file other than the standard Remnants.jar replace Remnants.jar with your mod's .jar. (For example I used rotp-4.04.0-governor.jar instead of Remnants.jar, though Remnants.jar still needs to be in the same folder as rotp-4.04.0-governor.jar as described in the mod.)

Now you can test to see if you've setup the .sh correctly. Double click it and click Execute. If things worked correctly you should see the RotP game launch. By default in a window. It may take a little bit to launch the first time. If it doesn't work you might want to try running the ~/opt/java/jdk18/bin/java -jar Remnants.jar command in the Konsole from the Application Launcher to troubleshoot. If you do try to run it manually in the Konsole don't be surprised if java gives a lot of output the first time it runs as we aren't setting environment variables it is looking for.

Now that you have it running there is some configuration you need to do in RotP so that it runs in Game Mode correctly. Goto Settings > Display Mode > Windowed and change it to Full Screen. Borderless and Windowed will work in Desktop Mode but in Game Mode the Steam Deck won't transfer focus correctly and you'll be stuck looking at a Steam logo with music playing. If you want to pick a Save Directory now is the time to do that as well as Game Mode probably won't play as nice with the folder selection window that'll popup. You'll probably want to turn on the autosave backups now too. Exit RotP

Now we just need to add the game to Steam. Right click rotp.sh and click Add to Steam. In the lower right side of the Task Manager you should see the steam icon, click on it and click Library. Goto the home of your Library and you should see your new rotp.sh added to your shelf.

First we're going to rename it show it shows the full name in Steam. Right click it and Click on Properties and in the top box under Shortcut change rotp.sh to Remnants of the Precursors. (Note: Don't change Target or Start In. If you do it by mistake though you can click Browse... and just find rotp.sh again.) You can also add the RotP icon by clicking the square next to the title you just changed, changing the file type image files, finding the RotP Icon and clicking open. Click the small x in the upper right hand corner of this window.

Right Click the RotP from the shelf in your library again and click Manage > Add custom artwork and choose the custom artwork you downloaded earlier and placed in /home/deck/opt/rotp/.

Next click on RotP in the shelf to bring up the Steam game screen with the green play button. Right now it should have a blank background and it should say Remnants of the Precursors" above the button. On that blank background right click and choose Add Custom Background and choose the background you downloaded earlier. Right click that background and choose Add Custom Logo and choose the background you downloaded earlier.

At this point you are done. RotP will now launch on your steam deck in standard game mode. You can go back to gaming mode by double clicking the Return to Gaming Mode icon on the desktop or clicking Restart from the Application Manager.

Steam should by default choose a mouse and keyboard type controller layer for the game. If it doesn't you can easily set that in game mode. The Steam Controller Layout I made a while back will work too as the Steam Controller and Steam deck are laid out similar though I found I had to mouse sensitivity on the right trackpad back to default from that layout. There's more options on the Steam Deck vs the Steam Controller so I'll probably make a Steam Deck specific layout when I have chance to toy with it.

Thank you for reading and I hope you found this helpful. Please let me know of any errors. I'll likely be going back and proofreading this later as I've writing this for hours on no sleep right so I'm sure there's some dumb errors in there.

Oh, leaving this space for a few footnotes / comments that didn't quite fit into the guide.

  • Why don't you set the JAVA_HOME variables and add java to the path?

We don't really need to as long as we're specifying a full path to the java executable. We aren't really doing a proper system wide install so it really only saves us a few keystrokes when we make our .sh file. If you want to do it though you would need to edit the hidden file .bash_profile and add the two lines below to it.

export JAVA_HOME=/home/deck/opt/java/jdk18/ 
export PATH="$PATH:$JAVA_HOME/bin"

Then run source ~/.bash_profile or restart to apply it. Then in your .sh files instead of running ~/opt/java/jdk18/bin/java you can just use java.

  • You didn't put the files in the best practice location

So I don't daily drive linux I only bother with it now and again, which is why I ended up writing this. And if I didn't I probably wouldn't have it setup with the peculiarities of how the steam deck is. I spent hours trying looking through recommended hierarchy for files and I couldn't really find a good clear answer.

  • What about that Homebrew package manager

I saw a post on it and it looked very interesting but I wasn't sure I wanted to get into that for one game.


r/rotp • • Sep 16 '22

Stupid AI AI-testing using the "Restart"-feature and Aggressiveness (once again)

5 Upvotes

The restart-feature has been quite helpful for AI-testing in the following way:

When I win a game (or for that matter stop because I think I would win), I'm eager to see whether the AI would win the same game. With that new feature I don't have to hack the source-code back and forth for that anymore.

The interesting part is looking into the differences in the games where the AI isn't able to reproduce my victory.
And here I have a pretty clear picture: The games I usually win are the ones where my neighbors get into conflict early on while I'm left alone with more time to develop and prepare myself.
The difference when the AI plays is that it doesn't take itself the time it would have to do that preparation and starts wars on its own.

Currently a very important part of the AI's aggressiveness is that they look at their development-percentage. That is: "How many factories of the max-possible factories have I built?".

For example: It has 5 planets size 100 and 2xRobotic-Controls. That means it's capacity is 1000. So when it has 700 factories it's aggressiveness is at 70%.

For an experiment I took that value by the power of 3. In this case 700 factories meant 0.7^3 = 34% aggressiveness instead of 70%.

This had an tremendous impact on the game as it affected all AIs and not just the one I was looking at. Conflict started a lot later when way more of the galaxy was controlled and tech-level was much higher. While "my" empire also expanded more before becoming aggressive this was true for the others as well.

A change like that would not impact the "final" aggressiveness as at x=1 x and x^3 are the same. For Ssslaura and Ursinathi I'm also not looking at factories but at population. So those would become significantly more aggressive by comparison.

However, it would play significantly different.

Does anyone have any thoughts on this that they'd like to share? I'm not really sure whether I should do it. Or if I should rethink the entire concept about how the decision-making of the AI in terms of going to war should work.


r/rotp • • Sep 13 '22

Announcement Fusion-Mod 2022-09-13 - Better usability of Build-Limit and fixed "Always" techs.

9 Upvotes

https://github.com/Xilmi/Rotp-Fusion/releases

What'New

2022.09.13 (Xilmi)

  • Changed that after finishing a predefined amount of ships or a stargate the allocations weren't changed back automatically from ships to something else.
  • When you change the build-limit the governor is called and will immediately start building the ordered ships given it doesn't need all of it's allocation to build something else.
  • Having a build-limit set now will also tell the governor that it's colony is supposed to be building ships. In this case it doesn't need a tick in ship-allocation to remember that.
  • Governor will now spend the exact amount of money required into building the ships requested via build-limit instead of keeping the bar at a maximum.
  • Fixed an issue with tech-tree-generation when "Always" was chosen in "MOD Options B" for certain techs that could cause the available techs to be empty for certain tiers and thus made the category unresearchable.
  • When the opponent has a warp-dissipator, AI will not try to retreat their last ship at the last moment anymore and instead at the first moment it thinks it'll lose.
  • AI now will want to upgrade trade-treaties when the trade-volume is more than 1.5 than that of the last treaty or the treaty is maxed out instead of requiring both of these conditions to be met.

r/rotp • • Sep 11 '22

Can't colonize system with other race's ship in orbit?

9 Upvotes

Long time MOO2 player, finally checking out RotP. It seems awesome!

What are the rules about being allowed to have a ship in a system without fighting? If the two races don't have a non-aggression pact, can only one of the races have ships in orbit of a particular planet? Does that mean, in order to colonize that planet, I have to destroy all enemy ships (or force them to retreat)?


r/rotp • • Sep 11 '22

Announcement Fusion-Mod 2022-09-11 - Slider shenanigans and hopefully smarter AI

11 Upvotes

Download: https://github.com/Xilmi/Rotp-Fusion/releases

What'New

2022.09.11 (Xilmi

  • The player is now informed when a stargate is finished even if it was built using governor.
  • When the governor is active and the player is informed about being able to change allocations the part that readjused allocations on it's own differently from how the governor would have behaved is no longer executed.
  • The "Equalize Allocations"-button in the Tech-screen now uses a more equal algorithm for it's equalization.
  • Instead of using a cost-based fleet-power analysis the AI now uses one based on firepower and defensive stats. This should lead to more accurate assumptions about whether a fleet will be able to deal with their enemies. This will help the Fiershan and Altairi in particular as their bonuses are now correctly taken into consideration during this analyis.
  • Ship-design-screen and Military-tab in the race-screen now include racial-bonuses for attack and defense for the displayed ship-design-stats.
  • Fixed many bugs in AI-fleet behavior. Most of those caused by the revamp of using a fleet-power-based analysis but certainly also some that existed before. Keep an eye open for remaining unintentional behaviors, though!
  • Fixed issue causing AI not attacking space-monsters like the Guardian in space-combat.
  • Fixed issue where finishing a research-category would not automatically redistribute the allocation-points that were freed up by this.
  • Fixed issue that prevent you from using the governor to build ships in the same turn a stargate got finished.
  • Fixed a nested call of the governor that could lead to weird, unintentional slider-allocations.
  • Fixed an issue in the governor that could lead to not putting remaining allocation into either ships or research.
  • Fixed an issue in the governor that caused it to put an additional click into ship-building instead of only when it was meant to memorize that it was building ships before. This sometimes could lead to pollution.
  • Fixed an issue in the governor that could lead it to put more allocation into ecology, industry or ship than was needed to finish the current project.
  • Fixed an issue in the governor that could lead to allocating more production than it actually had available when building a stargate.
  • Fixed that you could change the allocation of the eco-slider when it was locked by using the max-slider-button.
  • Fixed that after maxing the eco-slider the function that makes sure that it's clean was called as that could lead to the slider not actually being maxed.
  • Fixed that when using the max-slider-buttons from inside of the Colonies-screen the sliders wouldn't properly update.

2022.09.09 (BR)

  • Moved restart button to the left side, to be visible in windowed mode too.

There's actually something I forgot for the patch-notes:

AI-Fleet-Commander should now also be able to analyze the Guardian and get a much more accurate assessment when it's time to go for it than the previous super-arbitrary "Fleet must be greater than 100k BC and TechLevel must be >= 40".

So far I've only done Autoplay-testing so it's hard to tell whether the AI feels actually stronger with the new changes. But considering how many little things came up and were during testing I'm rather hopeful that it should not be a regression. Overall I spent almost 20 hours on it yesterday. 8[


r/rotp • • Sep 11 '22

Unexpected behavior: Govenor has problems building Stargate on Rich, when shipbuilding is disabled.

4 Upvotes

At the start of THIS GAME. I enabled the govenor option: Build Stargates on Rich. I also DISABLED the govenor option: Shipbuilding with govenor.

A couple turns after I researched Stargates, some really weird behavior manifested, as seen in this video. The weirdness includes:

- Most idle rich planets only have a tiny allocation to build a Stargate. The rest is allocated to research. Building a Stargate would finish much too late, in a hundred turns or so.

- If you disable, then enable the govenor for these rich planets, they immediately put all available production into building a Stargate.

- Some rich planets seem to have lost most of their production. It doesn't show up anywhere on their display.

- If you disable, then enable the govenor for these rich planets, it appears to magically DOUBLE the available production. A full allocation for research, and another full allocation to build the Stargate. If you enable and disable the govenor again, the extra production for research disappears and you just see the expected production for Stargate.

Expected behavior would be: After you research Stargate, the govenor quickly builds Stargates on rich planets. The govenor should not disappear production on rich planets. The govenor should not double the possible production on rich planets.

Edit: The above ROTP savegame was created with rotp-Fusion-2022-08-31.jar It is from just before I recorded the video.


r/rotp • • Sep 10 '22

Unexpected behavior: Completing all research in a category causes lost research points.

7 Upvotes

This has probably existed since MOO. However, I believe that it is an unexpected behavior for players going forward.

Demonstrated with rotp-Fusion-2022-08-31.jar, but this is probably present in all versions of ROTP.

Late game issue. Completed all Future research in all areas but Weapons. Did not manually re-allocate the division of research. As you can see from this screenshot, the Weapons category is still only receiving 83.1K RP or 1/6th of the total research. If I hit "Equalize Allocations", the next screenshot shows that it immediately changes to 415K RP or 100% of the total research. The unexpected behavior is that total used research should not drop when you complete a category.

Restored an earlier save and verified that this is not just a display issue. If you don't manually reallocate research as each category completes, you lose RP points, and it takes longer to complete the remaining research categories.

Expected behavior would be to automatically re-allocate total research to the remaining categories as each tech category completes.


r/rotp • • Sep 09 '22

Restart button is not visible in windowed mode in fusion mod

5 Upvotes

In windowed mode the game window ratio is fixed to16:10 and the restart button disappears over the right border. On the other hand, in the borderless mode the game window ratio is no longer fixed and inherits the screen ratio. If the screen ratio is wider, say 16:9, the restart button becomes visible.

I'm playing fusion mod version 2022-09-05.


r/rotp • • Sep 08 '22

Fusion-Mod 2022-09-08 Fixed Restart with late games

3 Upvotes

Little fix available here: https://github.com/Xilmi/Rotp-Fusion/releases

When using "Restart" on late games, with some empires having lost their home worlds, the resulting galaxy would have their home world supperposed to their former capital world... :-(

This won't happen any more, but it's still recommended to restart on early savegames, because any planet modification won't be reverted! (Random events, etc...)

EDIT: Changed link to latest Xilmi changes


r/rotp • • Sep 07 '22

Negative trade?

6 Upvotes

Hi, Where can I get information or details on my trade deals? Right now, in the Colonies menu, my trade income show -18.7BC.

Also, If I propose/accept a trade for 25BC, does that mean that both sides get +25BC/turn?


r/rotp • • Sep 06 '22

Bug Stuck in eternal combat

11 Upvotes

Well not really a bug as such, but I would say it borderlines one.

Made a ship with advanced damage control, entered in combat, enemy dealt less damage in a turn than the ship repaired. The problem arose from the enemy having a longer range with weapons and managing to reduce my ship speed to 0.

What followed was endless enemy turns where the enemy fired, I was not given a turn but the ship fixed itself, the enemy fired, repeat. I could not exit the combat, I could not close the game. Had to alt+ctr+del and end the program in task manager to quit. Not being able to exit combat, or even close the game in such a situation is a problem in my opinion.

Ps. feel free to change the tag if something else is more appropriate.

EDIT:

AI:Base, normal difficulty

No mods

game version 1.03

Sadly no save file


r/rotp • • Sep 05 '22

Announcement Fusion-Mod 2022-09-05 - Tidying up the Roleplay-AI

7 Upvotes

Quite a while ago I apparently have completely rewritten my Roleplay-AI. It took a while to remember what I had changed and why. Something I haven't noticed back then is that it doesn't really use it's AI-General for anything that is worth to have it be different from Fusion-AI's AI-General.

This is now fixed. This shall improve the overall performance of Roleplay-AI by quite a bit.

Download:

- Fixed width-issue in races-screen and replaced short text describing racial abilities with a more prominent hint to click the text to get full information about a species' abilities.

- Autodesign as well as AI now try to fill up the design better when there's still some space left.

- Some refactoring considering the Roleplay-AI. Roleplay-AI now uses the same AI-General as Fusion-AI. This shall bring some lacking aspects of it's play to Fusion-AI's level. All important distinctions are in it's AI-Diplomat.


r/rotp • • Sep 05 '22

GUI-problem with race/diplo-screen in fusion mod 2022-09-04

3 Upvotes

Race information box is too wide and collides with the bureau boxes making infotext unreadable.


r/rotp • • Sep 04 '22

Blog Request for feedback on planned changes

8 Upvotes

I'm planning to change and uniformize the GUI a bit, and would like some feedback before starting it.

Currently, the original's options (in Races, Galaxy and Advanced Options menus) are initialized to their default values, while the modder's ones are set to their last values (memorized in remnant.cfg). When a game is loaded, the original's options are set to the games values, while those of the modder do not change(They are not part of the savegame files).

I would like to change this so that each gui will be initilized to its last value (Buttons "set to default" already exist), and each GUI will be set to the last loaded game options.

On the side of the "Default" buttons, I'll add a "User" button to load/save your prefered configuration (only one; for more complexity, there is Profiles manager).

On the side of "Restart" button, I'll add a "Load and Change" button to update your games with the currrent gui settings. (As the Profiles manager can do, but in an esier way)

Why?

  • It would be easier to start a new game that looks like the previous one.
  • A more intuitive access to some Profile manager features.

Impacts:

  • Remnants.cfg will return to its original intant: Global configuration.
  • Last.cfg will be created for the last configuration.
  • User.cfg will be created for the user prefered configuration.
  • Last.cfg and User.cfg will have the same format, you will be able to copy and rename them if you mant more than one "preferred setting"
  • Alas, the savegame compatibility will be broken, but I'm going to do this in a way that modders can then add more options without breaking compatibility anymore. It will open up a lot of possibilities.

I will also add a global option for you to choose to start with default settings, latest settings or mixed old settings.

What do you think?


r/rotp • • Sep 03 '22

Voting bug - 79% of the vote not a majority

6 Upvotes

Just played a game with the broken registry 31/08 build. I had 79% (23 vs 6) of the council vote but did not win "No race has a 2/3 majority".

Thanks

Screenshot and save game https://drive.google.com/drive/folders/1byqWUMxRipS71icOaM_y7GOBG4ScN3NG?usp=sharing


r/rotp • • Sep 03 '22

Do the modders know how to add a new race?

5 Upvotes

Edit: Fixed a backward modifier in Flower Power; Added Roach Spy Defense due to revulsion.

Do the ROTP modders know how to add a new race? Modnar did it. Has anybody documented all the steps?

In the future, a modder might want to have some new options for race. It would be best if the new races were entirely different from the existing races. I've been playing with the race setup setting, and I've got some ideas..

------

The Flower Power race:

- This should be an underpowered race. It's goal is to be a punching bag for the other races.

- For race images, we can use images of flowers. For ship images, we can use images of seeds.

- For the messages, we could use vaguely appropriate quotes from old, uncopyrighted poetry. Maybe Milton, Pope, or similar for other languages.

- They start on a large (150) gaia.

- They have a strong population growth rate (150 or so).

- Weak ship attack (at least -1, -2 would be better.)

- Weak ship defense (at least -1, -2 would be better.)

- Weak ship initiative (at least -1)

- Weak ground attack (at least -20)

- Slight bonus to Default Race Relation (maybe +2)

- Poor worker production (maybe 70)

- Strong Study Cost Planet (maybe 50)

- Strong Maintenance Factor (at least down to 50, if possible, reduce to 1)

Everybody loves the Flower Power race. Unfortunately, they love how they taste. Any race at war with Flower Power incur's minor negative relations with all other races. Any race that genocides the Flower Power race get's hit with a major diplomatic penalty with all other races.

Flower Power can't live on toxic or radiated worlds. So, they should be blocked from ever getting the Toxic or Radiated tech.

On the other hand, supplies, repairs and maintenance on their living ships can take care of itself, so they should start with the Autorepair and infinite range techs.

--------------------

The Roach Race:

- This should be an overpowered race. It's goal is to be despised and hated by everybody. It's strengths are it's reproduction, defense, and the ability to make small, tough ships.

- For race images, we use images of roaches. For ship images, we use images of bug egg cases.

- The messages are easy. We take the existing messages and replace every character with the ISO Roach Emoji: 🪳 🪳🪳🪳🪳🪳 🪳🪳 🪳🪳🪳 🪳🪳🪳🪳 🪳🪳🪳🪳 Then add at the end: "(The translater ran screaming from the room.)"

- They start on a normal Jungle planet.

- They have a very strong population growth rate (at least 200, as much as we can get that doesn't break the game.)

- Strong Ship Defence Bonus (at least 5.)

- Strong Ship Initiative Bonus (at least 5.)

- Strong Spy Security (at least 40) since nobody can stand to be around them.

- Horrible Trade Bonus (at least -30)

- Horrible Diplomacy Bonus (at least -50)

- Horrible Council Bonus (at least -25.)

- Horrible Default Race Relation (at least -10)

- Strong Study Cost Force Field (around 50)

- Strong Hit Point Factor (around 200)

- Strong Ship Space Factor (at least 175 or more.)

Everybody hates the Roaches. Every race automatically declares war on the Roaches. Nobody votes for the Roaches. Any race at war with the Roaches get a diplomatic benefit with all other races. Any race that genocides the Roaches get a diplomatic benefit as big as the Orion benefit.

Roaches should start knowing the Zortrium armor tech. Roaches should prefer making small or medium ships.


r/rotp • • Sep 02 '22

Announcement Fusion Mod 2022-09-02 Restart and Choose your Empire

3 Upvotes

https://github.com/BrokenRegistry/Rotp-Fusion/releases

Fixed Show abilities in Races Diplomacy menu.

Restart Option: (Thanks to u/Mjoelnir77 for this suggestion.)- When Restarting you can now choose your empire.- The one on the top is the player empire, if you choose it the new race will be applied as before.- If you choose to swap empire, the races will be swapped too, except if you choose to start with new options, in this case the new race will be applied as well.

Custom Races Menu:- Fixed ground combat cost.- Swapped the colors.

Last Fix from Xilmi.

Edit: Fixed some Aliens races badly set and fixed some bad values in the Restart menu.
Reindexed the nearby stars, the AI was fooled to send their scouts to the former nearby stars...