Megaquarium

Megaquarium

What will you create?
Access an ocean of content for Megaquarium created by players like you. New animals, decorations, tanks and more are available to expand your game and tailor it to your liking.
了解更多
 此主题已被置顶,因此可能具有重要性
Twice Circled  [开发者] 3 2020 年 6 月 4 日 上午 3:34
Creating mods for Freshwater Frenzy
Hello all, here is a guide to help you create mods for Freshwater Frenzy.

Firstly, the following features will only work if Freshwater Frenzy is installed:
  • Breeding.
  • Accessories.
  • pH/acid.
  • Bridge/platform tanks, unless you include the tc3d files in the mod.
  • Land/occupies land care requirement.
  • Posters

If you include these behaviours on an object and try to include it in a non-DLC game they will either fail gracefully (disappear) or sometimes fail disgracefully (missing text/models will cause errors).

To stop this happening you can include a tag on your object's data files to make them only appear in games which have freshwater enabled. Here is an example for the piranha:

{
"id": "1_red_bellied_piranha",
"dlcTag":"freshwater frenzy",
"tags": [
"animal",
"serrasalmidae"
],
"menuTag":"serrasalmidae",
"menuButton":"livestock",
"perSpecNumbering": true,
"hosting": {
"hostedOn": [
"tank"
]
},
"contained": {
"advancedSpotMovement": {
"speed": 0.018,
"behaviours": {
"flickMove": 85,
"swim": 15
},
"flickMoveTurnMagnitude": 35.0,
"swimLength": 20,
"slowDownPeriod": 20.0,
"speedingUpPeriod": 60.0,
"pauseLength": 600,
"flickMoveDistance": 0.02,
"turnFrames": 60
}
},

... data definition continues

That one line at the top. That's all you need:
"dlcTag":"freshwater frenzy",

Add that and your objects will automatically only appear in freshwater levels and sandboxes. Nice huh?

But we can go one step further. To avoid disappointing players, you can tag the workshop item as needing the DLC to download.

https://drive.google.com/file/d/15aGVb5Nji40iJ5uUgnt4pU24Ih3Q3JJJ/view?usp=sharing

That way people will only download things they can actually use. Less messy and everyone's happy.

Other than the features mentioned above, I believe everything else will work in both vanilla and freshwater (try it first!).

Feel free to post any questions below. :)

== EDIT: ==
One thing I didn't make clear above. For the features listed above, they will only work correctly in a freshwater-enabled game e.g. freshwater campaign or a sandbox with freshwater enabled.

However they aren't restricted to freshwater animals. You can still create marine animals which breed, or marine land animals! :steamhappy:

But at the risk of repeating myself, they will only work correctly in a freshwater-enabled game IE give them the following tag, even if they are not a freshwater animal.

"dlcTag":"freshwater frenzy",

And mark the workshop item as requiring the DLC.

Hope that makes sense!

Note: pH reall is limited to freshwater animals.
最后由 Twice Circled 编辑于; 2023 年 10 月 17 日 下午 12:49
< >
正在显示第 1 - 4 条,共 4 条留言
Amnaa 39 2020 年 6 月 6 日 下午 2:49 
We've been trying to decode how hybridizing works. So far I managed to understand the coding of hues but there are a few issues (in my opinion).

If there is active alpha on the material - both the base color and the pattern get transparent by the % and then overlay. To me it would make more sense if the pattern did override the base and the result then got more transparent. I've figured that I can't make slightly transparent fins with full patterns because the base modifies the color too noticeably (think an albino that still has colorful fins).

Also, from my experience so far, I would really welcome a way to switch the base color completely (like the patterns) :steamhappy: The hues are impressive but it's very limiting.
最后由 Amnaa 编辑于; 2020 年 6 月 6 日 下午 2:54
Twice Circled  [开发者] 3 2020 年 6 月 7 日 上午 12:52 
Thanks for the feedback Amnaa, I will make a note of these two requests and take a look once things have calmed down a bit. :)

PS I haven't forgot about providing the models, but I'm going to hold off sending them over for a bit longer just while I'm getting the expansion all polished up in response to feedback.
grossebertha 128 2020 年 10 月 11 日 下午 5:11 
Hi !
I would to make a mod with snakes based on the vanilla green anaconda, but i have an issue with the fbx we have.
In the data of the green anaconda, there is the static animation "mill", but in the fbx we have for modders, there is only 3 animations, swim , swimtomill and milltoswim, there is not the "mill" animation.
maybe i don't have the "good" fbx.
I hope i can found a solution for this one because i have already made 2 snakes textures XD.
Thx ! cordially.
Twice Circled  [开发者] 3 2020 年 10 月 12 日 上午 2:51 
Ah, you're right, I think I gave an old file to the modders when I provided the fbx files. I don't like to share links to the files publicly, could you give me an email at support@twicecircled.com and I'll send over the file.

I'm going to be away for a few days with limited access to email so I might take a few days to respond. :)
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50