Clash Tune : tune your armies, clash enemies !

I would be interested too. Looks great

sorry, source code won’t be available for now…

Yeah I saw that when I downloaded the new one, the trees were black/yellow :stuck_out_tongue:

yes, all the “unknown” block meshes are drawn with black&yellow cubes.
a big update will come in the next few days, with… trees ! :smiley:
and a whole new army editor !
and working 3d !!!

new build arrived, now with full 3d !
still a looot of to do, but this is a major update for now.
still in heavy dev’…

SHC, could I send you the C sources to recompile on your mac ?

nicely done! The UI is very fluid and the map editor is really straight forward. On the graphic side, all the game units are drawn as sprite instead of the 3D objects, is there any setting to change that?

@titoasty
Please upload to mediafire or something and give the link to me. Also to note, we’re having severe power cuts (almost 10 hours with no power) so it may take me a few days to actually get them working.

You mean “game units” drawn on the UI, not in game ? They are sprites created from blocks.

@titoasty
I’m downloading xcode now. When will you upload the source code?

I’m working on it !
But careful, you’ll need a jdk installed because the compilation requires some java libraries…

@titoasty
I’ve downloaded your source and ran these commands from the terminal.


localhost:src sriharshachilakapati$ gcc -I"/System/Library/Frameworks/JavaVM.framework/Headers" -c floodfill.c jumppointsearch.c main.c queue.c
localhost:src sriharshachilakapati$ gcc -dynamiclib -o libpathfinder.jnilib floodfill.o jumppointsearch.o main.o queue.o
Undefined symbols for architecture x86_64:
  "_init_queue", referenced from:
      _floodfill in floodfill.o
  "_jumpPointSearch", referenced from:
      _Java_com_clashtune_pathfind_Pathfinder_jumpPointSearchNative in main.o
     (maybe you meant: _Java_com_clashtune_pathfind_Pathfinder_jumpPointSearchNative)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This is my first experience with C. Can you say what is going wrong?

The screen shot from the opening post shows trees, units being rendered as 3D objects, but when I tried to to add stuff in the editor, everything is rendered as sprite.

Oh, I thought you had experience with. Sorry but I really can’t help you with that… I’ll try to compile it for mac another way ! :wink:

My bad, I put a link to the wrong archive… I just fixed that… Goodbye 2D ! :slight_smile:
The correct link : http://goo.gl/SohjYx
Have fun !

I’m too curious to learn what is the problem. Can you give the command line with which you compiled for windows? This is because I can compile a hello world application with no errors.

I used Eclipse CDT with Mingw to compile, sooo didn’t use the command line directly
Perhaps could you try with Eclipse CDT too ?

I’m going to try creating a project in xcode. I ran those command lines from a JNI tutorial which is actually for linux but I thought the commands would be the same.

I sent you some command lines by message, hope it’ll help you !

Using multiple source files, it had the same error with the command lines you sent. So I merged all the source into one file, fixed some includes. Now one of the two errors is gone. The output is


localhost:pathfinderosx sriharshachilakapati$ gcc -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -O3 -Wall -c -fmessage-length=0 -o pathfinder.o pathfinder.c
localhost:pathfinderosx sriharshachilakapati$ gcc -D_JNI_IMPLEMENTATION_ -Wl, -shared -o libpathfinder.dylib pathfinder.o -framework JavaVM
Undefined symbols for architecture x86_64:
  "_jumpPointSearch", referenced from:
      _Java_com_clashtune_pathfind_Pathfinder_jumpPointSearchNative in pathfinder.o
     (maybe you meant: _Java_com_clashtune_pathfind_Pathfinder_jumpPointSearchNative)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I’m going to retest tomorrow morning.