Campaign Bug Issues
Moderator: Forum Moderators
Campaign Bug Issues
I'm having trouble with a campaign I'm creating. When you reach the fourth scenario you get an error message: "Error while playing the game: game_error: creating unit with an empty type field"
This is the first scenario with some custom units, so that may be the problem. Does anybody know what's going wrong?
This is the first scenario with some custom units, so that may be the problem. Does anybody know what's going wrong?
Sorta on a break from the forums ATM, have been for a while. If I was doing something for/with you and I haven't recently, that's why, I will be back soon hopefully.
Re: Campaign Bug Issues
If I remember correctly, this happens when you are trying to set up a side that is carried over from a previous scenario, but which, for some reason, doesn't have a leader (a unit with canrecruit=yes). It could mean that the leader has died in a previous scenario (or got stored in a variable). There are probably other possible causes also, you'll have to give us more information if you want more than semi-random guesses.
SP campaigns: Galuldur's First Journey (1.12 & 1.14) & Grnk the Mighty (1.10 & 1.12)
AI experiments: Micro AIs (wiki, forum thread, known/fixed bugs), Fred, AI-demos add-on
AI experiments: Micro AIs (wiki, forum thread, known/fixed bugs), Fred, AI-demos add-on
Re: Campaign Bug Issues
Here's the WML code for the scenario and the units. Yes, they are all in the right place and I have the pictures for them.
Before this level you had an AI ally that was labeled persistent. This level you don't have him anymore. Would that effect it?
Before this level you had an AI ally that was labeled persistent. This level you don't have him anymore. Would that effect it?
- Attachments
-
- WMLCode.zip
- (4.48 KiB) Downloaded 149 times
Sorta on a break from the forums ATM, have been for a while. If I was doing something for/with you and I haven't recently, that's why, I will be back soon hopefully.
Re: Campaign Bug Issues
No, it's way simpler... you have to either specify a unit type for each [side] or add no_leader=true. You haven't done any of that for side 3, so the error. (As a sidenote, I always set unrenamable=true for my hero units. Doesn't really make a difference, but thoroughness never hurts.)
Re: Campaign Bug Issues
That worked. Thanks!
I thought I did set unrenamable=true... I'll fix that.
I thought I did set unrenamable=true... I'll fix that.
Sorta on a break from the forums ATM, have been for a while. If I was doing something for/with you and I haven't recently, that's why, I will be back soon hopefully.
Re: Campaign Bug Issues
I added another scenario after it and now it has an error message reading "Neted quoted string at core/macros/traits.cfg:8 included from core/_main.cfg:10 included from _main.cfg:7 included from ~add-ons/Infection/scenarios/5_Landing_Party.cfg:114 included from ~add-ons/Infection/_main.cfg:22"
I'm also getting a similar problem on my multiplayer campaign. Do you know what's wrong?
I'm also getting a similar problem on my multiplayer campaign. Do you know what's wrong?
Sorta on a break from the forums ATM, have been for a while. If I was doing something for/with you and I haven't recently, that's why, I will be back soon hopefully.
Re: Campaign Bug Issues
Here's the code:
- Attachments
-
- WMLCode.zip
- (1.51 KiB) Downloaded 132 times
Sorta on a break from the forums ATM, have been for a while. If I was doing something for/with you and I haven't recently, that's why, I will be back soon hopefully.
Re: Campaign Bug Issues
Nested quoted string errors usually tell you that there's a quote missing somewhere. Notepad counted 37 quotes in your scenario, which can't be right and is most likely ther error's reason.
(Hint: line 66)
(Hint: line 66)
Co-Creator of The Fellowship of the Clay (BfW 1.10) ~~ Maintainer of the German Code of Conduct
How to isolate problematic WML code ~~ WML error messages and their reasons
How to isolate problematic WML code ~~ WML error messages and their reasons
Re: Campaign Bug Issues
Fixed.
Now I feel dumb...
Now I feel dumb...
Sorta on a break from the forums ATM, have been for a while. If I was doing something for/with you and I haven't recently, that's why, I will be back soon hopefully.
Re: Campaign Bug Issues
Thanks.
Sorta on a break from the forums ATM, have been for a while. If I was doing something for/with you and I haven't recently, that's why, I will be back soon hopefully.