USE BLITZ TERRAIN COMMERCIAL IN DARK GDK 2.0 COMMERCIAL
1. Put
Quote: "BlitzTerrain_RTTMSPlugin.dll, BlitzTerrain.dll"
on "DarkGDK\engine\plugins-licensed"
2. In file "DarkGDK\engine\libraries" add some string:
;/ Licensed plugins
BlitzTerrain_RTTMSPlugin.dll%Blitzwerks TerrainRTTMSP
;/ User plugins
BlitzTerrain_RTTMSPlugin.dll%Blitzwerks TerrainRTTMSP
3. Compile engine with plugins. Now I have BlitzTerrain_RTTMSPlugin in darkgdk.dll.
Add to dgdk-blitzterrain.cpp:
typedef void (__cdecl *ProtoBT_FlattenTerrain_4)(int32_t blitzTerrainId, float x, float z, float Radius);
void BT_FlattenTerrain(int32_t blitzTerrainId, float x, float z, float Radius) {
static ProtoBT_FlattenTerrain_4 Ptr;
//if (!Ptr && !GDKLoadPtr(&Ptr,"BlitzTerrain_RTTMSPlugin.dll","?BT_FlattenTerrain@@YAXKMMM@Z")) YAXHMMM@Z
if (!Ptr && !GDKLoadPtr(&Ptr,"BlitzTerrain_RTTMSPlugin.dll","?BT_FlattenTerrain@@YAXHMMM@Z"))
return;
if (GDKWaitFunction()) {
Ptr(blitzTerrainId, x,z,Radius);
GDKCleanupFunctionCall();
}
return;
}
And add to dgdk-blitzterrain.h:
void BT_FlattenTerrain(int32_t TerrainID,float X,float Z,float Radius);
4. call BT_FlattenTerrain(TerrainID,X,Z,150)in you VC++ project!
zzz!