gruppe-adler / grad-replay

Records player and AI movment and replays at the end of the mission.
GNU General Public License v3.0
7 stars 1 forks source link

VCOM_AI conflict? #12

Closed anfo55 closed 6 years ago

anfo55 commented 6 years ago

I can't imagine this would be easy to resolve because no dev is to blame (except possibly me!)

I am finding however that if I have VCOM_AI (v2.9.2) #includes activated in description.ext: `#include "scripts\VCOMAI\defines.hpp"

include "scripts\VCOMAI\DialogDefines.hpp"

include "scripts\VCOMAI\dialogs.hpp"`

and Grad_replay, I will get the following error: https://i.imgur.com/jVEhP3y.png Since you really are no obligation to change anything as VCOM aren't either, perhaps I could accept your advice to make them happy with each other?

nomisum commented 6 years ago

There is missing info, but I can imagine there are two or more classes defined double. Check both defines.hpp for duplicates and delete those entries in the file included second to fix this.

nomisum commented 6 years ago

Still I will mark this as a bug, as there might be a solution to define those classes duplicate-proof. @McDiod might have knowledge on this topic.

anfo55 commented 6 years ago

Happy to provide any information from VCOM_AI script if requested

nomisum commented 6 years ago

@anfo55 I'm more interested on the error itself. Could you provide the rpt file with the error?

anfo55 commented 6 years ago

This is a SP (Eden Preview) RPT only https://gist.github.com/anfo55/4fa808879d392088a437e288c6c3a56e

nomisum commented 6 years ago

thanks!

relevant snippet (as expected duplicate ui class defines)

22:21:14 Warning Message: File C:\Users\Richard\Documents\Arma 3 - Other Profiles\Anfo\missions\scripts_test.VR\modules\grad_replay\ui\defines.hpp, line 14: .RscSlider: Member already defined.
22:21:14 Warning Message: File C:\Users\Richard\Documents\Arma 3 - Other Profiles\Anfo\missions\scripts_test.VR\modules\grad_replay\ui\defines.hpp, line 33: .RscStructuredText: Member already defined.
22:21:14 Warning Message: File C:\Users\Richard\Documents\Arma 3 - Other Profiles\Anfo\missions\scripts_test.VR\modules\grad_replay\ui\defines.hpp, line 93: .RscText: Member already defined.
22:21:14 Warning Message: File C:\Users\Richard\Documents\Arma 3 - Other Profiles\Anfo\missions\scripts_test.VR\modules\grad_replay\ui\defines.hpp, line 113: .RscPicture: Member already defined.
22:21:14 Warning Message: File C:\Users\Richard\Documents\Arma 3 - Other Profiles\Anfo\missions\scripts_test.VR\modules\grad_replay\ui\defines.hpp, line 147: .RscButton: Member already defined.
22:21:14 Warning Message: File C:\Users\Richard\Documents\Arma 3 - Other Profiles\Anfo\missions\scripts_test.VR\modules\grad_replay\ui\defines.hpp, line 194: .RscFrame: Member already defined.
22:21:14 Warning Message: File C:\Users\Richard\Documents\Arma 3 - Other Profiles\Anfo\missions\scripts_test.VR\modules\grad_replay\ui\defines.hpp, line 333: .RscCombo: Member already defined.
22:21:15 Warning Message: File C:\Users\Richard\Documents\Arma 3 - Other Profiles\Anfo\missions\scripts_test.VR\modules\grad_replay\ui\defines.hpp, line 14: .RscSlider: Member already defined.
22:21:15 Warning Message: File C:\Users\Richard\Documents\Arma 3 - Other Profiles\Anfo\missions\scripts_test.VR\modules\grad_replay\ui\defines.hpp, line 33: .RscStructuredText: Member already defined.
22:21:15 Warning Message: File C:\Users\Richard\Documents\Arma 3 - Other Profiles\Anfo\missions\scripts_test.VR\modules\grad_replay\ui\defines.hpp, line 93: .RscText: Member already defined.
22:21:15 Warning Message: File C:\Users\Richard\Documents\Arma 3 - Other Profiles\Anfo\missions\scripts_test.VR\modules\grad_replay\ui\defines.hpp, line 113: .RscPicture: Member already defined.
22:21:15 Warning Message: File C:\Users\Richard\Documents\Arma 3 - Other Profiles\Anfo\missions\scripts_test.VR\modules\grad_replay\ui\defines.hpp, line 147: .RscButton: Member already defined.
22:21:15 Warning Message: File C:\Users\Richard\Documents\Arma 3 - Other Profiles\Anfo\missions\scripts_test.VR\modules\grad_replay\ui\defines.hpp, line 194: .RscFrame: Member already defined.
22:21:15 Warning Message: File C:\Users\Richard\Documents\Arma 3 - Other Profiles\Anfo\missions\scripts_test.VR\modules\grad_replay\ui\defines.hpp, line 333: .RscCombo: Member already defined.
22
McDiod commented 6 years ago

Bite the bullet and use a prefix I guess. grad_replay_RscText and so on.

nomisum commented 6 years ago

should be fixed with https://github.com/gruppe-adler/grad-replay/compare/1.0-beta...master (untested)