Jump to content

Unhandled Exception in ER


Lazarus.

Recommended Posts

Windows testers and anyone else reading TM's beta call thread may know that Echoes Renegade has been delayed by some very strange bugs resulting in unhandled exceptions for Windows users. Imban and I have both experienced crashes in the same area, and the problem has been traced to a seemingly harmless place_monster call. However, we are at a loss as to why BOA is suddenly objecting to such a frequently used call.

 

Pleas to Jeff Vogel have fallen on deaf ears, swearing and cursing has left us only with dry throats, BOA remains unrelenting in its inexplicable crashes. Here is the code in question, hopefully some wise spiderwebber out there will have better luck with it. This is one while statement out of 6 that appears in the town's start_state, the other 5 are just duplicates with different locations for monsters to spawn, so I posted just one. Ask TM, myself or any other tester if you need the full version of the script for some reason.

 

Code:
	if(get_flag(15,1) == 11){		if((((get_flag(19,1) == 0) && (get_ran(1,0,1) == 1)) || ((get_flag(19,1) == 1) && (get_ran(1,0,3) < 3))) && (get_flag(25,1) < 34)){			sld_typ = get_ran(1,0,8);			if(sld_typ < 4)				place_monster(24,8,6,0);			if((sld_typ >= 4) && (sld_typ <= 6))				place_monster(24,8,132,0);			if(sld_typ > 6)				place_monster(24,8,184,0);			pcs = 86;			telep_ok = 0;			while((pcs <= 119) && (telep_ok == 0)){				if(char_ok(pcs) == TRUE){					if(get_stat(pcs,27) == 0)						telep_ok = 1;				}				if(telep_ok == 0)					pcs = (pcs + 1);			}			if(telep_ok == 1){				alter_stat(pcs,27,1);				rctx = char_loc_x(pcs);				rcty = char_loc_y(pcs);				put_boom_on_space(rctx,rcty,2,0);				force_instant_terrain_redraw();				run_animation_sound(10);				inc_flag(25,1,1);			}		}
Good luck.
Link to comment
Share on other sites

I had similar problems with UE until I did something odd. Remove any stray files from the BoA directory or the data directory that could possibly be duplicates of those included with the scenario. I was getting an error every time I opened DwtD, but it disappeared when I cleaned up the directory. Actually, since I cleaned them up, I've had NO UE errors.

 

Edit - What I'm getting at is that Windows has trouble when it is presented with two identically named files from which to choose. Thus the UE. Eliminate its confusion.

 

Hope that helps...

Link to comment
Share on other sites

Oh yeah, that reminds me. Setting the cr_small_or_large_template improperly causes crashes, but these crashes may not occur the first time the monster appears. The first thing I'd check here is graphics, and part of checking that is checking cr_small_or_large_template.

 

All known causes of UE are here , at the bottom.

Link to comment
Share on other sites

Ok the error is fixed. The problem was that the spawned creatures used a slightly altered version of groupnpc which added them to their group and sent an alert to their group in the Init_state. Once the group they were being added to reached maximum capacity (20), they started sending alerts to nobody, which crashes Windows users but just does nothing for Macs.

 

Thanks for the help. And remember kids, don't send alerts to nonexistant groups.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...