Problem with "The Heist"
Moderator: Forum Moderators
Problem with "The Heist"
In the campaign "The Heist" the second scenario doesn´t work:
When I end the turn it ends the whole program. Am I the only one??
(please excuse language )
When I end the turn it ends the whole program. Am I the only one??
(please excuse language )
First read, then think. Read again, think again. And then post!
Illegal characters can crash the game. I did it the other day.
Hope springs eternal.
Wesnoth acronym guide.
Wesnoth acronym guide.
As "guest" pointed out in this thread, the crash only occurs when binary saves are turned on. Wesnoth crashes with an error about too many recursion levels.
I searched the forum and found this thread, which led me to believe that the crash occurs because of the randomly generated descriptions for all the units.
After I removed the "generate_description=yes" line from my unit-creation macro, the crash stopped occurring.
I searched the forum and found this thread, which led me to believe that the crash occurs because of the randomly generated descriptions for all the units.
After I removed the "generate_description=yes" line from my unit-creation macro, the crash stopped occurring.
Terminating with an error message from the game itself isn't normally referred to as crashing.genosuke wrote:As "guest" pointed out in this thread, the crash only occurs when binary saves are turned on. Wesnoth crashes with an error about too many recursion levels.
I searched the forum and found this thread, which led me to believe that the crash occurs because of the randomly generated descriptions for all the units.
After I removed the "generate_description=yes" line from my unit-creation macro, the crash stopped occurring.
I suspect the binary save stuff isn't the real issue. It seems to have a built in limit of 100 for some reason (that perhaps isn't really needed), but my question would be why would you be getting 100 level deep nesting of the config file. That seems to be odd whether or not it causes the game to terminate.
I'll take a look at how the description is generated and see of I see anything problematic there. I haven't looked at that code yet, so I don't promise to be able to spot problems there.
It looks like when random numbers are generated a nested list of the numbers generated is created and that that tree is saved during the autosave. If binary saves are turned on the nesting exceeds a preconfigured limit during the save process and the game exits after printing a message to stderr.
I need to learn more about what random is doing, to tell if this is something easily fixible or not.
I have reached my lack of sleep limit tonight, but will look at it over the weekend.
I need to learn more about what random is doing, to tell if this is something easily fixible or not.
I have reached my lack of sleep limit tonight, but will look at it over the weekend.
-
- Posts: 86
- Joined: May 9th, 2004, 1:24 pm
- Location: Rome, Italy
OK, the campaign now works (0.5.2)
But "The Collision" is absolutely unwinable IMO. Maybe the it was planned that Zilead's faction and King Gerald's faction fight each other, but they don't: they just mob up against you, smashing you to pulp in the wink of an eye.
The "recruited" help thing is nice, but there are way to many villages... and the generated units are too strong - javelliners against fencers, are you kidding?
A bit disappointing
In "The Heist" scenario the final confrontation you have to rely on luck as no strategy is applicabile in 1 hex narrow wide spot leading you straight to save/load if you get unfavourable results... I'd think that one over. Then again if you get two units close to the guards they won't counterattack you which means you can pick them out with your ranged units. I think this is a engine bug which stops units attacking if they are surrounded. This makes the whole thing a bit boring, like shooting on dummies.
Otherwise the guards would be clearly overpowered. So maybe you would like to tune down a bit the guards but ad 1 emtpy hex between the guards and the cell doors, so they don't freeze if attacked by two units.
Hope I explained myself.
The side hopping is interesting, but as I played only until TC it is a bit confusing right now...
But "The Collision" is absolutely unwinable IMO. Maybe the it was planned that Zilead's faction and King Gerald's faction fight each other, but they don't: they just mob up against you, smashing you to pulp in the wink of an eye.
The "recruited" help thing is nice, but there are way to many villages... and the generated units are too strong - javelliners against fencers, are you kidding?
A bit disappointing
In "The Heist" scenario the final confrontation you have to rely on luck as no strategy is applicabile in 1 hex narrow wide spot leading you straight to save/load if you get unfavourable results... I'd think that one over. Then again if you get two units close to the guards they won't counterattack you which means you can pick them out with your ranged units. I think this is a engine bug which stops units attacking if they are surrounded. This makes the whole thing a bit boring, like shooting on dummies.
Otherwise the guards would be clearly overpowered. So maybe you would like to tune down a bit the guards but ad 1 emtpy hex between the guards and the cell doors, so they don't freeze if attacked by two units.
Hope I explained myself.
The side hopping is interesting, but as I played only until TC it is a bit confusing right now...
I'll try to make it a little easier, but it should still be difficult since Bill isn't too bright . BTW, the intended strategy is to position the fencers in such a way that Zilead's side lands on more villages than Gerald's side. Then when Zilead's army is strong enough, lure both sides together (position some fencers between them). Also, if you attack Zilead's side, then Zilead will be safe from Gerald's men next turn (they'll all gang up on you). I've passed the scenario several times (on easy) following this strategy.But "The Collision" is absolutely unwinable IMO. Maybe the it was planned that Zilead's faction and King Gerald's faction fight each other, but they don't: they just mob up against you, smashing you to pulp in the wink of an eye.
The "recruited" help thing is nice, but there are way to many villages... and the generated units are too strong - javelliners against fencers, are you kidding?
I realize that "The Heist" isn't very good right now. It will be completely redesigned to more closely resemble an actual dungeon (e.g., new terrain for dungeon doors). I will also incorporate your suggestions.In "The Heist" scenario the final confrontation you have to rely on luck as no strategy is applicabile in 1 hex narrow wide spot leading you straight to save/load if you get unfavourable results... I'd think that one over. Then again if you get two units close to the guards they won't counterattack you which means you can pick them out with your ranged units. I think this is a engine bug which stops units attacking if they are surrounded. This makes the whole thing a bit boring, like shooting on dummies.
Otherwise the guards would be clearly overpowered. So maybe you would like to tune down a bit the guards but ad 1 emtpy hex between the guards and the cell doors, so they don't freeze if attacked by two units.
No, but 4 random numbers between commands isn't going to be a problem. For 1.0.2 I just ended up raising the max recursion limit to 1000. (Previously it was 100.)genosuke wrote:Is there a way to generate random numbers without generating the nested tags in the save file? My latest scenario requires that four random numbers be generated each turn.
1.0.2 still doesn't have a windows install executable available for download, but I imagine that will change over the weekend.