Original War

Original War

Arabian Campaign
BlackDeath Feb 1, 2018 @ 10:18am
last ar mission sacrifice
General Info
------------
Application : Owarogl
Version : 2.0.6.132_OGL (Steam)

ModName : Arabian Campaign
ModDir : ArabianCampaign
ModVer : 2016-05-08 (201645054508.0)

ErrorType : Unknown
ErrorText : Range check error (005C4F8E)

Exception : None

Params : -LAUNCH
ParamCount : 1

Game Info
---------
Multiplayer : False
Multi.GameState : Undef
Multi.ChatConnLost : False
Multi.IAMServer : False
Multi.Joined : False
Multi.Loaded : False
Multi.MapVersion : 0
Multi.OffLine : False
Multi.OnLine : False
Multi.ServerLost : False
Multi.StatusText :
MultiDef.MapName :

mission_number : 15
mission_campaign : 2
camp_names[mission_campaign] : Ar
mission_names[mission_number] : 15
game_difficulty : 1
ingame_video : False
stop_talking : False
stop_action : False
end_of_mission : 0
end_the_mission_allowed : False
dialogue_skipped : False
last_title_ident : -1
last_title_unit : 0
last_title_radio : False
last_title :

lastSail : 112559
tick : 18590

Random Stuff
------------
GodMode : False
DeveloperMode : False
ModCBMode : False
OfficialMod : False
InterfSide : 3
MultiCore : True
< >
Showing 1-15 of 15 comments
ESnareD  [developer] Feb 2, 2018 @ 9:12am 
Hm this is somehow related to the game engine itself. I've forwarded the report but I doubt there is anything to do about it. OW's engine isn't the most stable, unfortunately.
BlackDeath Feb 2, 2018 @ 3:12pm 
i hope u can do something i wanna do fninish this mission :D
Pawlo Feb 3, 2018 @ 11:43am 
Originally posted by esbendall:
Hm this is somehow related to the game engine itself. I've forwarded the report but I doubt there is anything to do about it. OW's engine isn't the most stable, unfortunately.

I confirm that bug. I didn't report that because I thought it have something to do with my little "cheat" (editing start.txt to boost skills of Heike ; D). Doesn't matter if you're attacking little AR base at north-west, AM at north-est or anything in russian base - always error "Range check error (005C4F8E)" (exact as the one posted). I assume that it may have something to do with newest patch. I don't have time to replay campaign but it may be worth to check this lead.

General Info ------------ Application : Owarogl Version : 2.0.6.132_OGL ModName : ArCamp ModDir : ArCamp ModVer : 1.0 (1.0) ErrorType : Unknown ErrorText : Range check error (005C4F8E) Exception : None Params : MOD ARCAMP ParamCount : 2 Game Info --------- Multiplayer : False Multi.GameState : Undef Multi.ChatConnLost : False Multi.IAMServer : False Multi.Joined : False Multi.Loaded : False Multi.MapVersion : 0 Multi.OffLine : False Multi.OnLine : False Multi.ServerLost : False Multi.StatusText : MultiDef.MapName : mission_number : 15 mission_campaign : 2 camp_names[mission_campaign] : Ar mission_names[mission_number] : 15 game_difficulty : 1 ingame_video : False stop_talking : False stop_action : False end_of_mission : 0 end_the_mission_allowed : False dialogue_skipped : False last_title_ident : -1 last_title_unit : 898 last_title_radio : False last_title : lastSail : 42431 tick : 19492 Random Stuff ------------ GodMode : False DeveloperMode : False ModCBMode : False OfficialMod : False InterfSide : 3 MultiCore : True Windows Info ------------ Product : Windows 10 Win32MajorVersion : 10 Win32MinorVersion : 0 BuildNumber : 9200 ServicePack : ServicePackMajor : 0 ServicePackMinor : 0 Physical Memory : 8081MB CPU Name : Intel(R) Core(TM) i3-3120M CPU @ 2.50GHz CPU Clock : 2494Mhz Current CPU Clock : 2495Mhz
Last edited by Pawlo; Feb 3, 2018 @ 11:45am
Stucuk Feb 5, 2018 @ 12:04am 
The Error is caused by something trying to build a building or behemoth where the direction is not correct. Either the value its being sent is above 255 or below 0. Which is invalid (Anything higher than 5 is invalid for a direction).

It looks like it would be a bug in the SAIL script as no other mission/mod has had this error.

@McBenn: Forwarded it where? There is nothing on the Bug Tracker and i havn't been informed. I just randomly was looking at the mods page and saw this thread.

Note that just because its a crash in the engine doesn't mean its the fault of the engine. If your mod supplies values which are not within the proper range that the engine expects (Directions being 0 to 5) then it will crash.

EDIT: GetDir will return -1 if the unit doesn't exist (Like most of the unit functions).
Last edited by Stucuk; Feb 5, 2018 @ 12:49am
Stucuk Feb 5, 2018 @ 1:07am 
Note: If you want a quick fix then check every AddComBuild/ComBuild's direction input to make sure its between 0 and 5. It won't fix the actual cause but it will prevent errors.

If someone could upload a save for the mission i could look into it further.
Last edited by Stucuk; Feb 5, 2018 @ 1:08am
Pawlo Feb 5, 2018 @ 8:46am 
Originally posted by House:
Note: If you want a quick fix then check every AddComBuild/ComBuild's direction input to make sure its between 0 and 5. It won't fix the actual cause but it will prevent errors.

If someone could upload a save for the mission i could look into it further.
https://megawrzuta.pl/filesgroup/4f9970bf147fe29f07e9dbd5de6e478d.html
I uploaded 3 saves (but as i said - cheated) click "Idź do pliku" and then "Pobierz plik"

Crash only occurs after destroying too much. (the save "naukowcyspeed" (scientinsspeed) is with "speeded" scientist so i could contaminate main lode and finish the game without crash (wanted to see end-game dialogues at least ; D)
Last edited by Pawlo; Feb 5, 2018 @ 8:54am
Stucuk Feb 5, 2018 @ 9:18am 
I only just noticed that your using the old version of the mod. ArCamp is the old version. Arabian Campaign is the latest.

For some reason my copy of ArCamp doesn't have a mission 15 (Though it has a 15a) so i can't use the save.
Pawlo Feb 5, 2018 @ 10:31am 
It is the newest commit downloaded from this website : https://bitbucket.org/McBenn/arabiancampaign/commits/all
Last edited by Pawlo; Feb 5, 2018 @ 10:33am
ESnareD  [developer] Feb 5, 2018 @ 12:48pm 
@Stu Argh damit must have forgotten to actually write to you about it. My mom called in the middle of me responding.

Now we have a lead I'll se if I can track down the bug.
Stucuk Feb 6, 2018 @ 12:19am 
Originally posted by Pawlo:
It is the newest commit downloaded from this website : https://bitbucket.org/McBenn/arabiancampaign/commits/all

Using the manual download the save works, so it looks like the steam version had its sail re-compiled (And thus making it incompatible as the game would think its a different version of the SAIL).

I havn't narrowed it down but i was right that its the SAIL:
https://i.imgur.com/W1qKX5D.png

The image shows the values sent to an engineer to build/upgrade a building. The cilxs/cilys are the x/y coordinates where it should be built. Param1 is the building type and Param2 is the side. None of these should be negative values as they are invalid.
Last edited by Stucuk; Feb 6, 2018 @ 12:21am
Stucuk Feb 6, 2018 @ 12:51am 
The engineer chosen is at 225,148 which would be american territory. Yet i destroyed stuff in the Arabian base(White Side) on the left. For some reason i can't trace the error to a sail function (It isn't stopping at breakpoints i place which makes no sense).

EDIT: worked out why its not stopping at breakpoints in ComBuild, its because your directly setting tasks with SetTaskList. So its one of the SetTaskList's setting the tasks to 'B'.

The issue is at:
SetTaskList(ai_building_constructor[base],[['B',ai_upcoming_building_data[base][1],ai_upcoming_building_data[base][2],0,b_value,ai_upcoming_building_data[base][3],0]]);

for some reason you have b_value = -42; as a value if its a building not in the list. -42 isn't a valid building id so that would cause a crash in its self. So would the -7's. Though the real culprit is whats setting ai_upcoming_building_data.

EDIT2: The reason it gets past the following is because HexInfo returns 0 for invalid hex's:
GetBType(HexInfo(ai_upcoming_building_data[base][1],ai_upcoming_building_data[base][2]))

It only returns -1 if its occupied by Environment. Though that line isn't the true issue (Your code is too complicated for me to work out what is actually causing the -1 values).
Last edited by Stucuk; Feb 6, 2018 @ 2:52am
BlackDeath Feb 6, 2018 @ 3:03am 
so any can fox this?i wanna finish this mission :/
ESnareD  [developer] Feb 6, 2018 @ 10:01am 
The problem comes from ai_buildings_locations containing values like [-1,-1,-1,-1,0,0,0,1] and I really don't see how that can happen. I've sent the bug on to 0dd1 who created the mission in the first place.
ESnareD  [developer] Feb 7, 2018 @ 9:21am 
I've uploaded 0dd1's fix which should prevent the bug from happening although it may cause the AI to not rebuild buildings. I guess that will just make the mission easier :)
BlackDeath Feb 7, 2018 @ 9:24am 
i hope so :D
< >
Showing 1-15 of 15 comments
Per page: 1530 50