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

Game crash on starting new game, while using Godot 3.2.3 to compile + run #9

Open
huangwei4478 opened this issue Oct 8, 2020 · 5 comments

Comments

@huangwei4478
Copy link

hi, Bauxitedev!

I just came across your meteorite game and would like to have a try & take to look at this implementation inside for learning, and I found myself cannot start a new game due to the following crash in door_generic.gd, which the debugger said: "Invalid get index 'move_to_pos' (on base: null instance)"

# door_generic.gd

func _ready():
	
	var door_list_split = door_list.split(",")
	for door_name in door_list_split:
		doors.push_back(get_node(door_name))
	
	match bullet_color:
		BulletColor.RED: set_doormat_tex(load("res://%s_red.png" % door_texture_prefix))
		BulletColor.GREEN: set_doormat_tex(load("res://%s_green.png" % door_texture_prefix))
		BulletColor.BLUE: set_doormat_tex(load("res://%s_blue.png" % door_texture_prefix))
		
	for door in doors:
		var door_name = door.name
		initial_positions[door_name] = door.translation
		target_positions[door_name] = door.get_node("col").move_to_pos    # crash on this line
		

It seems like door.get_node("col") is returning null. get_node cannot find "col" node.

Do you have any idea to fix it? Any hint or advices would be very appreciated so I might make a PR for this migration.

Thanks!

@Bauxitedev
Copy link
Owner

Yup, as mentioned in the readme, only Godot 3.0.4 works. I'll have to fix it at some point but I'm still recovering from COVID so that may take a long while.

@Zireael07
Copy link

I'm still recovering from COVID

Oh! I hope this doesn't mean you caught it, I hope you mean the general changes the pandemic brought on.

@Bauxitedev
Copy link
Owner

@Zireael07 I caught COVID in March, I'm still bedridden today, although I'm slowly recovering and lately I've started doing some light programming again.

@huangwei4478
Copy link
Author

Yup, as mentioned in the readme, only Godot 3.0.4 works. I'll have to fix it at some point but I'm still recovering from COVID so that may take a long while.

Oh man... Just take good care & good rests! Hope you recover well and sound soon!

@20kdc
Copy link
Contributor

20kdc commented Jul 2, 2021

oh, right, forgot to cross-link the PR and the issue, um, #10

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

4 participants