Software Inc.

Software Inc.

Không đủ lượt đánh giá
More Days!
   
Giải thưởng
Yêu thích
Đã yêu thích
Bỏ thích
Type: Code mod
Kích cỡ file
Đã đăng
Đã cập nhật
84.259 KB
11 Thg12, 2024 @ 4:58pm
18 Thg01 @ 1:22pm
3 ghi chú thay đổi ( xem )

Đăng ký để tải xuống
More Days!

Mô tả
This mod allows the slider in the game setup for days per month to go up to 31 days!
10 bình luận
Reo  [tác giả] 12 Thg05 @ 10:22am 
I've tested with the latest uploaded version and it works just fine for me I'm thinking you may have a conflicting mod.
Reo  [tác giả] 12 Thg05 @ 10:18am 
I will look into this as soon as I can, thank you!
gonzo2305 12 Thg05 @ 8:34am 
Unfortunately also doesn't compile on b1.8.16 for me, also appears in Error category.
david162 15 Thg03 @ 10:00pm 
Thank you for the mod, it should be in the base game as an option, hint, hint
Coredumping  [nhà phát triển] 19 Thg01 @ 7:03am 
Could be that the ActorCustomization instance hasn't been initialized before your method is called. You can use Unity's coroutines to delay your method by a frame or 2.

The hacky method will break if I end up rearranging the UI in the future, but I'm pretty sure that won't happen.
Reo  [tác giả] 18 Thg01 @ 1:11pm 
I just did the hacky way lol.
Reo  [tác giả] 18 Thg01 @ 10:20am 
I am working on it now and I remember why I couldn't do the slider everytime I would call ActorCustomization.Instance.DaysPerMonth.maxValue I would get this error in game System.NullReferenceException: Object reference not set to an instance of an object
at DaysOfMonth.DaysOfMonthModBehaviour.OnLevelFinishedLoading (UnityEngine.SceneManagement.Scene scene, UnityEngine.SceneManagement.LoadSceneMode mode) [0x00016] in <724c5ba410c5437586bec00920112476>:0
and after about 3 hours of trying anything to get it to work I just gave up. No fault to you or anyone else, I am just new to making plugins in general and going off the documentation I can find information for. Like with the starting years you don't have to call an instance it's just ActorCustomization.StartYears but for this it's within the instance of the game and I am dumb lol
Reo  [tác giả] 18 Thg01 @ 9:10am 
Yooo thank you!! I will take a look into that in the next few days and update the mod accordingly, you're the goat!
Coredumping  [nhà phát triển] 18 Thg01 @ 8:50am 
A more hacky way to do it, but easier if you don't know where to look is to use the "UI_UNDER_MOUSE" command to find the path to the slider "MainPanel/GameConf/DaySlider", and then call WindowManager.FindElementPath("MainPanel/GameConf/DaySlider").GetComponent<Slider>().maxValue = 31
Coredumping  [nhà phát triển] 18 Thg01 @ 8:48am 
After loading the "Customization" scene, execute "ActorCustomization.Instance.DaysPerMonth.maxValue = 31".