IUnitDef_generated.gpp problem

IUnitDef_generated.gpp problem

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
ILMTitan
Spring Developer
Posts: 410
Joined: 13 Nov 2004, 08:35

IUnitDef_generated.gpp problem

Post by ILMTitan »

I'm removing noAutoFire from UnitDef in favor of the more generalized canFireControl and fireState (the fbi tag will still work). However, with noAutoFire gone, I get an error in IUnitDef_generated.gpp. Since it is a generated file, I don't think it would make sense to manually edit it, but when I try to run generate.bat, it complains about not finding GlobalAIInterfaces.dll. What do I need to do?
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: IUnitDef_generated.gpp problem

Post by Kloot »

That .dll assembly is (or was) used by some C# program to generate
the ABIC wrapper interface IIRC, you would have to compile it from the
stuff in ExternalAI/GlobalAIInterfaces (which is probably quite non-trivial
at this point, might be better to just remove all the dead binding code).
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: IUnitDef_generated.gpp problem

Post by AF »

I would rather we had a basic C API intact so we could eventually fix it up and implement a proper C->C++ wrapper on the AI end.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: IUnitDef_generated.gpp problem

Post by Tobi »

Just remove it until someone steps up who has time to fix it and maintain it. A small, clean, maintained codebase is better then a huge one of which half the code is just bitrotting away.

(and write the generate script in a portable manner, if it was LUA'ed or shell scripted it would be fine IMHO.)

EDIT: btw someone who knows what he's doing can probably make proper generated C binding with C++ proxy classes in one-two days.
Post Reply

Return to “Engine”