Pixel Piracy

Pixel Piracy

View Stats:
ν Jun 15, 2023 @ 12:59am
[Mod] Fish Anywhere, and any other mods of mine
I made a mod that allows your crew to fish without walking to the edge/boarding spot and getting murdered during combat. Or at least that's what was happening to me on my ship, possibly caused by the design?

Download it or view the source here:
https://github.com/Sonata26/pixel_piracy_sonata_modules/releases

I may also add other mods in the future, but it's a lot more work to make sharable mods than just make changes for myself... (the difference being simply editing the game's code vs making a patcher).

Also, the mod might break randomly or from updates or the loader might be setup wrong... I haven't fully tested it yet. Let me know if it does/doesn't work. There shouldn't be any issues, but backup your saves before modding.

Potential Future Mods
  • Throw poop off ship anywhere [X] (v1.1.0)
  • Ship Editor/Exporting/Importing Ships (sharing)
  • Barrel Tweaks - something like 2x bonus, 3x cost (placing 100 barrels again on a large ship that was freezing every time you place a block was not fun)
  • Color picker for character creation
  • Custom sprites
  • Pause during encounter popup (one time I alt tabbed during an encounter popup and came back to 100 poops and starving crew)
  • Auto Save Backup
Last edited by ν; Jun 21, 2023 @ 8:47am
< >
Showing 1-10 of 10 comments
That's awesome I feel like mods would really make this game alot more well rounded! Especially if there is a way to edit your crew mates and customize them. Would be pretty sweet. Or to improve the character customization all together.
ν Jun 21, 2023 @ 8:48am 
Added the throw poop off from anywhere patch to releases under v1.1.0
Biggis Dickus Jul 1, 2023 @ 5:25am 
Hey nice work! How were you able to read the values and make changes to the game? How did you read the files? what is the scripting language used?
ν Jul 1, 2023 @ 3:14pm 
Originally posted by Nocomms.:
Hey nice work! How were you able to read the values and make changes to the game? How did you read the files? what is the scripting language used?

The short answer is, Google how to mod Unity games (add "with dnSpy or Harmony" if not getting good results) and watch some videos to get an idea of it.

The longer answer:
Tools (all are open source and on GitHub don't download from anywhere else)
  • dnSpy - Lets you view and edit the games compiled code, you can get very far with just this and a little bit of C# / Unity knowledge. But you cannot share mods made this way due to legal reasons. Also you can only use one persons mod at a time, and updates will overwrite your mod. (I guess dnSpy is outdated now, look into dnSpyEx for updated one but old one still works)
  • C# - The programming language used in Unity games and usually for the mods, if you know another language already, you don't need much knowledge of C#
  • Unity - You don't need Unity, but you may want to reference the documentation
  • --- Below is for when you want to make sharable mods ---
  • A mod loader (there are many) - when you want to make sharable mods you have to create a patcher (this is the actual mod basically) and setup a mod loader. I use BepInEx.
  • BepInEx - Mod loader + comes with Harmony and other stuff which is used for writing your patchers (mods)
  • IL Language / OpCodes - These are situational, and you likely won't have to use them if you just use dnSpy, but if dnSpy fails for whatever reason or you're writing a patcher, usually it can save you.

You can look at my mod for a tiny example, but I did end up using IL codes since it seemed the easiest. And if you want your brain to melt, look at some Rimworld mods (they are good reference too actually):

https://github.com/erdelf/AlienRaces/blob/master/Source/AlienRace/AlienRace/HarmonyPatches.cs
Last edited by ν; Jul 1, 2023 @ 3:18pm
Biggis Dickus Jul 4, 2023 @ 4:58am 
Originally posted by Sonata:
Originally posted by Nocomms.:
Hey nice work! How were you able to read the values and make changes to the game? How did you read the files? what is the scripting language used?

The short answer is, Google how to mod Unity games (add "with dnSpy or Harmony" if not getting good results) and watch some videos to get an idea of it.

The longer answer:
Tools (all are open source and on GitHub don't download from anywhere else)
  • dnSpy - Lets you view and edit the games compiled code, you can get very far with just this and a little bit of C# / Unity knowledge. But you cannot share mods made this way due to legal reasons. Also you can only use one persons mod at a time, and updates will overwrite your mod. (I guess dnSpy is outdated now, look into dnSpyEx for updated one but old one still works)
  • C# - The programming language used in Unity games and usually for the mods, if you know another language already, you don't need much knowledge of C#
  • Unity - You don't need Unity, but you may want to reference the documentation
  • --- Below is for when you want to make sharable mods ---
  • A mod loader (there are many) - when you want to make sharable mods you have to create a patcher (this is the actual mod basically) and setup a mod loader. I use BepInEx.
  • BepInEx - Mod loader + comes with Harmony and other stuff which is used for writing your patchers (mods)
  • IL Language / OpCodes - These are situational, and you likely won't have to use them if you just use dnSpy, but if dnSpy fails for whatever reason or you're writing a patcher, usually it can save you.

You can look at my mod for a tiny example, but I did end up using IL codes since it seemed the easiest. And if you want your brain to melt, look at some Rimworld mods (they are good reference too actually):

https://github.com/erdelf/AlienRaces/blob/master/Source/AlienRace/AlienRace/HarmonyPatches.cs

Thank you for your reply!! I have done some mods for Arma 3 using SQF and I have done alot of value editing as well but I would not call myself a programmer at this point. I have done the google grasshopper and learned a bit of python. Thank you for sharing a bit of your setup!!

Can you recommend a GUI/linter to use for this work? I have used sublime text 3 in the past for SQF work.
ν Jul 4, 2023 @ 3:28pm 
Originally posted by Nocomms.:
Thank you for your reply!! I have done some mods for Arma 3 using SQF and I have done alot of value editing as well but I would not call myself a programmer at this point. I have done the google grasshopper and learned a bit of python. Thank you for sharing a bit of your setup!!

Can you recommend a GUI/linter to use for this work? I have used sublime text 3 in the past for SQF work.

AFAIK you want to use VS Code or Visual Studio for C#. You can probably get other editors working but those two are made to work with C#. I use VS Code, it's lightweight and most similar to Sublime (just get whatever C# extensions from inside the app), but you'll probably see Visual Studio used most in any tutorials / videos and it's a little easier to setup/use.
Showrunner  [developer] Jul 23, 2023 @ 3:07am 
Do you guys want a discord channel for modding?
ν Jul 23, 2023 @ 8:49am 
Originally posted by Vitali Kirpu:
Do you guys want a discord channel for modding?

I wasn't even aware there is a Discord server :CatKira: I'll check it out and kickstart the modding channel by posting a link to this thread/mod if you do make it.
HolyTortillas Jul 31, 2023 @ 5:12am 
Originally posted by Sonata:
Originally posted by Vitali Kirpu:
Do you guys want a discord channel for modding?

I wasn't even aware there is a Discord server :CatKira: I'll check it out and kickstart the modding channel by posting a link to this thread/mod if you do make it.






Where is the discord channel?
ν Jul 31, 2023 @ 4:51pm 
Originally posted by HolyTortillas:
Originally posted by Sonata:

I wasn't even aware there is a Discord server :CatKira: I'll check it out and kickstart the modding channel by posting a link to this thread/mod if you do make it.

Where is the discord channel?

It was buried in some news or event post.

https://discord.gg/S88F7tUPxa
< >
Showing 1-10 of 10 comments
Per page: 1530 50