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.
Learn More
Flishster 71 11 Aug, 2020 @ 7:53pm
Custom Campaign Help
So, I'm making a custom campaign for my current mod (I made another one already which is working like a charm) however for whatever reason on this particular map, when you go to place something, it does not place (but takes your money). If you try to expand your aquarium, it makes any item you try to place or move invisible. Any idea what could be causing this?
< >
Showing 1-10 of 10 comments
Twice Circled  [developer] 3 12 Aug, 2020 @ 2:31am 
Could you post your log after encountering some of these issues? I reckon there'll be some juicy errors in there. ;)
Flishster 71 12 Aug, 2020 @ 7:52am 
Here is the end of the log file, I omitted it loading previous files to the campaign because there are so many but let me know if you need them!

Loaded game from: C:\Users\flish\OneDrive\Documents/My Games/Megaquarium/Mods/Northern Plunge Pack/Maps\northern_plunge_iceway.sav

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Starting scenerio, run one-time code

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

model.fileName = northern_plunge_iceway

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

DisplayLevels()

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Stopping old model thread.

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Model thread stopped

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

AssignNewModel (called on RenderThread), add model.Init to ModelThread action queue.

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Starting new model thread

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

model.Init() (called on ModelThread)

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)


Unloading 421 unused Assets to reduce memory usage. Loaded Objects now: 17827.
Total: 437.391700 ms (FindLiveObjects: 1.899400 ms CreateObjectMapping: 0.770500 ms MarkObjects: 434.164300 ms DeleteObjects: 0.556700 ms)

Running new scenario code for each object

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

grid.minCoord = -20,-14

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

cornerCount = 86

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

sectorCount = 140

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Starting section: northern_plunge-2-iceway_section1

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

e = popupMessage=northern_plunge-2-iceway_intro

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

AddObjectiveTab: northern_plunge-2-iceway_section1

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

SetSection: northern_plunge-2-iceway_section1

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Steam Cloud: writing file Saves/autosave.sav to cloud.

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Steam Cloud: writing file Saves/autosave.png to cloud.

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Saved game to: C:\Users\flish\OneDrive\Documents/My Games/Megaquarium/Saves/autosave.sav

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Steam Cloud: writing file Saves/global.data to cloud.

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Saved file to C:\Users\flish\OneDrive\Documents/My Games/Megaquarium/Saves/global.data

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Steam Cloud: writing file Saves/autosave.sav to cloud.

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Steam Cloud: writing file Saves/autosave.png to cloud.

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Saved game to: C:\Users\flish\OneDrive\Documents/My Games/Megaquarium/Saves/autosave.sav

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

NullReferenceException: Object reference not set to an instance of an object
at ObjectData.NameSelf () [0x00000] in <filename unknown>:0
at ObjectData.Create () [0x00000] in <filename unknown>:0
at Model.CreateObject (System.String specId) [0x00000] in <filename unknown>:0
at Model.CreateObjectInternal (System.String specId, .Coord c, Int32 angle, Boolean addToGameWorld, Boolean createVO, .VisualObject vo, .ObjectData hostObject) [0x00000] in <filename unknown>:0
at Model.CreatePlaceable (.PlaceInfo placeInfo, .ObjectSpec spec, Boolean ignoreCost, Boolean addToGameWorld) [0x00000] in <filename unknown>:0
at Model.CreatePlaceableOnHost (.ObjectData hostObject, .ObjectSpec spec) [0x00000] in <filename unknown>:0
at PlaceTool+<PlaceHostedMobile>c__AnonStorey2.<>m__0 () [0x00000] in <filename unknown>:0
at ModelThread.DoActions () [0x00000] in <filename unknown>:0
at ModelThread.Run () [0x00000] in <filename unknown>:0
Rethrow as Exception: Error during ModelThread.DoActions

UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
ModelThread:Run()

(Filename: Line: -1)

Steam Cloud: writing file Saves/autosave.sav to cloud.

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Steam Cloud: writing file Saves/autosave.png to cloud.

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Saved game to: C:\Users\flish\OneDrive\Documents/My Games/Megaquarium/Saves/autosave.sav

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Steam Cloud: writing file Saves/autosave.sav to cloud.

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Steam Cloud: writing file Saves/autosave.png to cloud.

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Saved game to: C:\Users\flish\OneDrive\Documents/My Games/Megaquarium/Saves/autosave.sav

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Exit

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Stopping old model thread.

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Model thread stopped

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)

Uploading Crash Report
Uploading Crash Report
Setting up 2 worker threads for Enlighten.
Thread -> id: 28f4 -> priority: 1
Thread -> id: 4fe0 -> priority: 1
Twice Circled  [developer] 3 13 Aug, 2020 @ 1:15am 
Hmm, interesting. Looking at the code it's not immediately obvious what's going wrong. I'm going to have to run this at my end to get the full picture.

I assume this custom map is not on the workshop yet? If so, would you mind sending it over to me at support@twicecircled.com? :)
Flishster 71 13 Aug, 2020 @ 9:11am 
Sure thing! I will have to send you the whole modpack because it uses a modded theme and some modded fish. :) Also, as a note, I copied all the map settings (everything but the map itself) into another map that is also using a custom theme and the same modded fish and that one works just fine.
Flishster 71 2 Sep, 2020 @ 9:51am 
Hey! Just wondering if you had any updates on this, Tim. I sent this over a while ago through the email and didn't get a reply back. I'm sure you're busy so no pressure, it's just been a while so wanted to make sure you hadn't forgotten!
Twice Circled  [developer] 3 3 Sep, 2020 @ 2:31am 
Hey Flishster, I'm sorry, yes I did receive it, I should have replied. It's on my to-do list, I'm currently working my way through the bigger features for the next update and then I'll work my way down the list to issues such as this.

Apologies for the delay! I think it's really cool that you're working on a custom scenario, definitely want to support this. :)
Last edited by Twice Circled; 3 Sep, 2020 @ 2:32am
Flishster 71 3 Sep, 2020 @ 8:17am 
Alright! Thanks for letting me know!
stlnegril9 32 11 Sep, 2020 @ 9:31am 
seems to have fixed northern_plunge_iceway.sav with:
1) nextUID = 886 (probably main issue)
2) adding 2 items to unlockedSpecs
3) correcting the counts in namenumbers

Nice Map!
Flishster 71 11 Sep, 2020 @ 5:31pm 
Thanks for the help again Stlnegril! Hopefully this will help anyone else who gets this problem in the future.
Last edited by Flishster; 11 Sep, 2020 @ 5:32pm
Twice Circled  [developer] 3 13 Sep, 2020 @ 4:13am 
Oh interesting, yes, if you are manually editing the map via text editor and adding objects, then nextUID needs to be higher than the uid of any objects you've already got in the map.

Basically every object gets given a unique id (UID) when it is created. The next id given is the value of nextUID and then nextUID is incremented by 1.

If the value of nextUID is less than a UID that is already assigned then the same UID will be assigned twice. This is likely to cause errors.

Nice spot Stlnegril.
Last edited by Twice Circled; 13 Sep, 2020 @ 4:14am
< >
Showing 1-10 of 10 comments
Per page: 1530 50