Page 1 of 1

New game : Divide And Succeed!

PostPosted: 29 Jan 2011, 21:42
by MCMic
Hi!
I'm working with a friend on a new free game, named "Divide and succeed".
It's inspired by the game "Slice it!" for Iphone/Android.
The idea is to cut polygons in equal parts with a specific number of lines:
Image

I think it's now playable enough to be tested by people, so if you feel like it, download the source code and compile it!

There are only 9 levels atm, so if you want to provide us levels, it would be great help.
There is no level editor thought, you have to use a text-editor and respect the level syntax.

The game miss a level selector and a progression saving system, I should work on that soon.

Official website : http://projects.haxx.es/p/divide-and-succeed/

Source code is under GPLv3.

Re: New game : Divide And Success!

PostPosted: 29 Jan 2011, 23:54
by KroArtem
{l Code}: {l Select All Code}
git clone git://haxx.es/divide-and-success.git
Cloning into divide-and-success...
haxx.es[0: 91.121.172.115]: errno=Connection timed out
haxx.es[0: 2001:41d0:1:ed73::1]: errno=Network is unreachable
fatal: unable to connect a socket (Network is unreachable)

That's sad, it isn't my connection problem, internet works ok for me last days.

Re: New game : Divide And Success!

PostPosted: 30 Jan 2011, 02:24
by MCMic
KroArtem {l Wrote}:
{l Code}: {l Select All Code}
git clone git://haxx.es/divide-and-success.git
Cloning into divide-and-success...
haxx.es[0: 91.121.172.115]: errno=Connection timed out
haxx.es[0: 2001:41d0:1:ed73::1]: errno=Network is unreachable
fatal: unable to connect a socket (Network is unreachable)

That's sad, it isn't my connection problem, internet works ok for me last days.

I can't test right now, my connection is limited, I'll get back to you later.

Re: New game : Divide And Success!

PostPosted: 31 Jan 2011, 01:47
by MCMic
Ok, there was actually a problem with the git server, it's back online now.

I also added a menu to select the level, and the saving system for the progression.

Re: New game : Divide And Success!

PostPosted: 31 Jan 2011, 18:52
by KroArtem
While typing cmake . :
{l Code}: {l Select All Code}
-- Configuring done
CMake Error at CMakeLists.txt:31 (add_executable):
  Cannot find source file "Progress.h".  Tried extensions .c .C .c++ .cc .cpp
  .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

Re: New game : Divide And Success!

PostPosted: 01 Feb 2011, 11:38
by MCMic
KroArtem {l Wrote}:While typing cmake . :
{l Code}: {l Select All Code}
-- Configuring done
CMake Error at CMakeLists.txt:31 (add_executable):
  Cannot find source file "Progress.h".  Tried extensions .c .C .c++ .cc .cpp
  .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

Arh, I forgot to add some files, it's done now.
But I've broken some features since, your progression won't be saved. (but you can still play)

Re: New game : Divide And Success!

PostPosted: 01 Feb 2011, 21:47
by KroArtem
{l Code}: {l Select All Code}
Linking CXX executable bin/divideandsuccess
/usr/bin/ld: cannot open output file bin/divideandsuccess: No such file or directory
collect2: ld returned 1 exit status
make[2]: *** [bin/divideandsuccess] Error 1
make[1]: *** [CMakeFiles/bin/divideandsuccess.dir/all] Error 2
make: *** [all] Error 2


Re: New game : Divide And Success!

PostPosted: 01 Feb 2011, 21:52
by Sindwiller
Building is the devil. :lol:

Re: New game : Divide And Success!

PostPosted: 02 Feb 2011, 02:08
by MCMic
KroArtem {l Wrote}:
{l Code}: {l Select All Code}
Linking CXX executable bin/divideandsuccess
/usr/bin/ld: cannot open output file bin/divideandsuccess: No such file or directory
collect2: ld returned 1 exit status
make[2]: *** [bin/divideandsuccess] Error 1
make[1]: *** [CMakeFiles/bin/divideandsuccess.dir/all] Error 2
make: *** [all] Error 2


You just have to do "mkdir bin".
I don't know how to tell cmake to create a folder. And I think I can't add an empty directory to a git.

[EDIT] Ok, CMakeLists.txt updated on the git repo, now the build should work even without doing the mkdir.

Re: New game : Divide And Success!

PostPosted: 02 Feb 2011, 18:32
by KroArtem
Lol, continue finding problems:
{l Code}: {l Select All Code}
(gdb) run
Starting program: /home/artem/SVN/divide-and-success/bin/divideandsuccess
[Thread debugging using libthread_db enabled]
Problem while loading levels: No such file or directory
no progression file found

Program received signal SIGSEGV, Segmentation fault.
0x000000000042c218 in std::vector<Level, std::allocator<Level> >::end (
    this=0x0) at /usr/include/c++/4.5/bits/stl_vector.h:454
454         { return const_iterator(this->_M_impl._M_finish); }
(gdb) bt
#0  0x000000000042c218 in std::vector<Level, std::allocator<Level> >::end (
    this=0x0) at /usr/include/c++/4.5/bits/stl_vector.h:454
#1  0x000000000042bc00 in std::vector<Level, std::allocator<Level> >::empty (
    this=0x0) at /usr/include/c++/4.5/bits/stl_vector.h:583
#2  0x0000000000434eaa in Game::Game (this=0x7fffffffe0d8, p=0x0)
    at /home/artem/SVN/divide-and-success/src/Game.h:32
#3  0x0000000000431733 in Interface::Interface (this=0x7fffffffe070,
    m=Interface::NORMAL)
    at /home/artem/SVN/divide-and-success/src/Interface.cpp:38
#4  0x000000000041fde1 in main ()
    at /home/artem/SVN/divide-and-success/src/main.cpp:31
(gdb)

Segfaulting just because there are no levels is not a good idea ;)

Re: New game : Divide And Success!

PostPosted: 02 Feb 2011, 19:26
by MCMic
KroArtem {l Wrote}:Lol, continue finding problems:
{l Code}: {l Select All Code}
(gdb) run
Starting program: /home/artem/SVN/divide-and-success/bin/divideandsuccess
[Thread debugging using libthread_db enabled]
Problem while loading levels: No such file or directory
no progression file found

Program received signal SIGSEGV, Segmentation fault.
0x000000000042c218 in std::vector<Level, std::allocator<Level> >::end (
    this=0x0) at /usr/include/c++/4.5/bits/stl_vector.h:454
454         { return const_iterator(this->_M_impl._M_finish); }
(gdb) bt
#0  0x000000000042c218 in std::vector<Level, std::allocator<Level> >::end (
    this=0x0) at /usr/include/c++/4.5/bits/stl_vector.h:454
#1  0x000000000042bc00 in std::vector<Level, std::allocator<Level> >::empty (
    this=0x0) at /usr/include/c++/4.5/bits/stl_vector.h:583
#2  0x0000000000434eaa in Game::Game (this=0x7fffffffe0d8, p=0x0)
    at /home/artem/SVN/divide-and-success/src/Game.h:32
#3  0x0000000000431733 in Interface::Interface (this=0x7fffffffe070,
    m=Interface::NORMAL)
    at /home/artem/SVN/divide-and-success/src/Interface.cpp:38
#4  0x000000000041fde1 in main ()
    at /home/artem/SVN/divide-and-success/src/main.cpp:31
(gdb)

Segfaulting just because there are no levels is not a good idea ;)

Hum, I'll check that.
Meanwhile, you need to launch the game in the main folder with "./bin/divideandusccess", or it does not find the levels.

Re: New game : Divide And Success!

PostPosted: 02 Feb 2011, 19:37
by KroArtem
this is what I was speaking about : crashing only because the program cannot find the levels is not good, don't you think so? ;)

Re: New game : Divide And Success!

PostPosted: 02 Feb 2011, 19:40
by MCMic
KroArtem {l Wrote}:this is what I was speaking about : crashing only because the program cannot find the levels is not good, don't you think so? ;)


I pushed a fix, now the game won't crash, but it still won't launch if you're not in the good folder.