Home » MODDING HQ 1.13 » v1.13 Multiplayer Development & Bug Reports » JA2 1.13 Multiplayer (2)
Re: JA2 1.13 Multiplayer (2)[message #185363] Fri, 16 May 2008 07:13 Go to previous messageGo to previous message
SpaceViking

 
Messages:757
Registered:January 2004
Location: Rochester, Minnesota, USA
In a single player game the use of the variable ENEMY_ENABLED is wrong. It is possible to get into a fight with that set to 0 and then the code that insert enemies into a sector never gets executed.

The problem occurs in AddPossiblePendingEnemiesToBattle.

For a single player game if I am reading your changes correctly ENEMY_ENABLED either has to always be 1 (TRUE) or you have to somehow skip that test at the start of AddPossiblePendingEnemiesToBattle.


I am not sure but this might be the problem, or at least part of the problem:

C:\Documents and Settings\Bill\Desktop\JA2 Source\Multiplayer\connect.h(19):extern int ENEMY_ENABLED;
C:\Documents and Settings\Bill\Desktop\JA2 Source\Multiplayer etwork.h(24): int ENEMY_ENABLED;
C:\Documents and Settings\Bill\Desktop\JA2 Source\Multiplayer\client.cpp(243): int ENEMY_ENABLED=0;

Notice that ENEMY_ENABLED is defined in two different header files but in network.h it is not extern.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Issues with video, where best to post (JA2 118)?
Goto Forum:
  


Current Time: Wed Nov 13 14:55:04 EET 2019

Total time taken to generate the page: 0.03888 seconds