Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cutscene Crash - cannot read field 'duration' because 'box' is null #112

Open
ZenithBuilder2024 opened this issue Jan 27, 2025 · 2 comments

Comments

@ZenithBuilder2024
Copy link

Cutscene crash - New Horizon mod
The game crashes whenever the cutscenes for New Horizon maps with cutscenes begin, as the field 'duration' as 'box' set to 'null'

Steps to reproduce the behaviour:
The crash occurs in both the campaign and custom games.
Campaign:

  1. Go to 'Play', then 'Campaign'
  2. Select 'Midantha', then find and click on 'new-horizon-hostile-research-station' or 'new-horizon-ancient-shipyard' (if unlocked)
  3. Select 'Launch' on launch menu (if you have the sufficient resources)
  4. Game loads map
  5. See error

Custom Game:

  1. Go to 'Play', then 'Custom Game'
  2. Select either 'new-horizon-hostile-research-station' or 'new-horizon-ancient-shipyard'
  3. Select 'Launch' on launch menu
  4. Game loads map
  5. See error
  • Game Version: Release build 146
  • MOD Version: 0.5.7
    No other mods are installed.

Expected behaviour:
The game would load the map and begin playing the cutscene associated with the map, before playing as normal.

Crash Log
NullPointer:
Cannot read field "duration" because "box" is null.

Device: HP Pavillion SE 14" Laptop, 64-bit operating system, x64-based processor
Device OS: Windows 11 24H2

Additional context
Only affects maps with cutscenes.

@DANIIL-BOOM-2021
Copy link

I also ran into this problem, maybe the logs of Foo's Client will help the problem?

crash-report-02_06_2025_08_25_43.txt

Ohno, the game has crashed. Report this at: https://discord.gg/yp9ZW7j

Copy paste the report below when reporting:
```java
Version: release steam build 146
(Foo's Client Version: cd7df92, Jan. 24, 2025)
Last Server: unknown/none
Source: mindustry-antigrief/mindustry-client-v7-builds
OS: Windows 10 x64 (amd64)
Java Version: 16.0.1
Runtime Available Memory: 1024mb
Cores: 2
Mods: new-horizon:0.5.7, nh-scheme-pack:0.5.1, sanabi-ost:v1.1.0, scheme-size:2.7.79, super-cheat:1.2.7.1

java.lang.NullPointerException: Cannot read field "duration" because "box" is null
	at newhorizon.expand.cutscene.actions.CSSActions.text(CSSActions.java:70)
	at newhorizon.content.NHSectorPresents$2.lambda$new$4(NHSectorPresents.java:527)
	at newhorizon.expand.eventsys.EventHandler.runEventOnce(EventHandler.java:42)
	at newhorizon.content.NHSectorPresents$2.lambda$new$5(NHSectorPresents.java:514)
	at newhorizon.expand.cutscene.NHCSS_Core.lambda$load$7(NHCSS_Core.java:144)
	at arc.util.TaskQueue.run(TaskQueue.java:17)
	at arc.backend.sdl.SdlApplication.loop(SdlApplication.java:195)
	at arc.backend.sdl.SdlApplication.<init>(SdlApplication.java:54)
	at mindustry.desktop.DesktopLauncher.main(DesktopLauncher.java:58)

@DANIIL-BOOM-2021
Copy link

I also ran into this problem, maybe the logs of Foo's Client will help the problem?

crash-report-02_06_2025_08_25_43.txt

Ohno, the game has crashed. Report this at: https://discord.gg/yp9ZW7j

Copy paste the report below when reporting:
```java
Version: release steam build 146
(Foo's Client Version: cd7df92, Jan. 24, 2025)
Last Server: unknown/none
Source: mindustry-antigrief/mindustry-client-v7-builds
OS: Windows 10 x64 (amd64)
Java Version: 16.0.1
Runtime Available Memory: 1024mb
Cores: 2
Mods: new-horizon:0.5.7, nh-scheme-pack:0.5.1, sanabi-ost:v1.1.0, scheme-size:2.7.79, super-cheat:1.2.7.1

java.lang.NullPointerException: Cannot read field "duration" because "box" is null
	at newhorizon.expand.cutscene.actions.CSSActions.text(CSSActions.java:70)
	at newhorizon.content.NHSectorPresents$2.lambda$new$4(NHSectorPresents.java:527)
	at newhorizon.expand.eventsys.EventHandler.runEventOnce(EventHandler.java:42)
	at newhorizon.content.NHSectorPresents$2.lambda$new$5(NHSectorPresents.java:514)
	at newhorizon.expand.cutscene.NHCSS_Core.lambda$load$7(NHCSS_Core.java:144)
	at arc.util.TaskQueue.run(TaskQueue.java:17)
	at arc.backend.sdl.SdlApplication.loop(SdlApplication.java:195)
	at arc.backend.sdl.SdlApplication.<init>(SdlApplication.java:54)
	at mindustry.desktop.DesktopLauncher.main(DesktopLauncher.java:58)

the log has already been sent to the Foo's Client server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants