Thrive Game Development

Development of the evolution game Thrive.
 
HomeHome  PortalPortal  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  
Welcome new and returning members!
If you're new, read around a bit before you post: the odds are we've already covered your suggestion.
If you want to join the development team, sign up and tell us why.
ADMIN is pleased to note that this marquee has finally been updated.
ADMIN reminds you that the Devblog is REQUIRED reading.
Currently: The Microbe Stage GUI is under heavy development
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Quick Links
Website
/r/thrive
GitHub
FAQs
Wiki
New Posts
Search
 
 

Display results as :
 
Rechercher Advanced Search
Statistics
We have 1675 registered users
The newest registered user is dejo123

Our users have posted a total of 30851 messages in 1411 subjects
Who is online?
In total there are 3 users online :: 0 Registered, 0 Hidden and 3 Guests

None

Most users ever online was 443 on Sun Mar 17, 2013 5:41 pm
Latest topics
» THIS FORUM IS NOW OBSOLETE
by NickTheNick Sat Sep 26, 2015 10:26 pm

» To all the people who come here looking for thrive.
by NickTheNick Sat Sep 26, 2015 10:22 pm

» Build Error Code::Blocks / CMake
by crovea Tue Jul 28, 2015 5:28 pm

» Hello! I can translate in japanese
by tjwhale Thu Jul 02, 2015 7:23 pm

» On Leave (Offline thread)
by NickTheNick Wed Jul 01, 2015 12:20 am

» Devblog #14: A Brave New Forum
by NickTheNick Mon Jun 29, 2015 4:49 am

» Application for Programmer
by crovea Fri Jun 26, 2015 11:14 am

» Re-Reapplication
by The Creator Thu Jun 25, 2015 10:57 pm

» Application (programming)
by crovea Tue Jun 23, 2015 8:00 am

» Achieving Sapience
by MitochondriaBox Sun Jun 21, 2015 7:03 pm

» Microbe Stage GDD
by tjwhale Sat Jun 20, 2015 3:44 pm

» Application for Programmer/ Theorist
by tjwhale Wed Jun 17, 2015 9:56 am

» Application for a 3D Modeler.
by Kaiju4u Wed Jun 10, 2015 11:16 am

» Translator to Serbian here
by Simeartherist Sun Jun 07, 2015 6:36 am

» Presentation
by Othithu Tue Jun 02, 2015 10:38 am

» Application of Sorts
by crovea Sun May 31, 2015 5:06 pm

» want to contribute
by Renzope Sun May 31, 2015 12:58 pm

» Music List Thread (Post New Themes Here)
by Oliveriver Thu May 28, 2015 1:06 pm

» Application: English-Spanish translator
by Renzope Tue May 26, 2015 1:53 pm

» Want to be promoter or project manager
by TheBudderBros Sun May 24, 2015 9:00 pm


Share | 
 

 Microbe Stage Development

View previous topic View next topic Go down 
Go to page : Previous  1, 2, 3, 4, 5, 6  Next
AuthorMessage
Daniferrito
Experienced


Posts : 726
Reputation : 70
Join date : 2012-10-10
Age : 22
Location : Spain

PostSubject: Re: Microbe Stage Development   Wed Jan 30, 2013 6:41 pm

Ok this is what i get when following your instructions as well as i could.

- Select Mode - Dont know what you want me to do here

- Build -> Make -> Build command : "Build Command ${MAKE} -f Makefile install" - I believe Build Command doesen't belong here. I tried this just in case, but it just returned "Build is not a programm"

With this taken care of, I still get errors. I'll copy them here, as i dont really understaund what they mean (other than it doesen't work)

Spoiler:
 

I believe this is caused by this longer one:

Spoiler:
 

I believe it is complaining that it found "\M" on CMakeCCompiler.cmake, but i dont know why nor how to solve it.

Code assistance works fine, and as soon as i add the boost directory it can find absolutelly everything.
Back to top Go down
View user profile
Seregon
Regular


Posts : 263
Reputation : 37
Join date : 2011-08-10
Location : UK

PostSubject: Re: Microbe Stage Development   Wed Jan 30, 2013 7:13 pm

Ah, it lost some formatting when I copied it into the post, 'Select Mode' was the title of one of the wizard pages... will fix the formatting now.

Your right about the build command too, it should have been just "${MAKE} -f Makefile install" (without quotes).

Your first error just means it hasn't found a makefile, which is becuase CMake didn't run succesfully, so that should fix itself when you fix that.

I also get errors/warnings about \M, but can compile anyway, going to test a few things to see if I can find an answer.
Back to top Go down
View user profile
Seregon
Regular


Posts : 263
Reputation : 37
Join date : 2011-08-10
Location : UK

PostSubject: Re: Microbe Stage Development   Wed Jan 30, 2013 7:26 pm

Ok, first suggestion - in netbeans, find the cmakelists.txt and go to properties. There, under arguments, change 'Unix Makefiles' to 'MSYS Makefiles'. You can also try 'MinGW Makefiles', which seems like it should work, but is giving me errors...

edit - after making that change, right click the cmakelists.txt again and choose 'generate makefile'

double edit - if doing that gives your errors about the previous build configuration not matching, delete all the contents of the build/ folder and generate again.
Back to top Go down
View user profile
Daniferrito
Experienced


Posts : 726
Reputation : 70
Join date : 2012-10-10
Age : 22
Location : Spain

PostSubject: Re: Microbe Stage Development   Wed Jan 30, 2013 7:54 pm

I tried both, and the only thing it returned me was:

CMake Error: Could not create named generator MinGW Makefiles

The same for the other one.
Back to top Go down
View user profile
Seregon
Regular


Posts : 263
Reputation : 37
Join date : 2011-08-10
Location : UK

PostSubject: Re: Microbe Stage Development   Wed Jan 30, 2013 7:57 pm

Ok... that I haven't seen before. If you run the CMake GUI as before, do you have the option for MSYS and MinGW when configuring?

edit - another suggestion, switch the generator back to "Unix Makefiles" in the properties, then edit line 7 of cmakelists.txt to
cmake_minimum_required(VERSION 2.8.4)
and generate again.
Back to top Go down
View user profile
Daniferrito
Experienced


Posts : 726
Reputation : 70
Join date : 2012-10-10
Age : 22
Location : Spain

PostSubject: Re: Microbe Stage Development   Wed Jan 30, 2013 8:07 pm

Yep, they are both there. Maybe it is finding another previous instalation of cmake? If it is the case, i dont have a clue what could it be finding.

Ok, i just forced netbeans to pass make the wrong arguments, and it says the version of cmake is 2.8.9, which seem the one i have installed and working. It says:

The following generators are available on this platform:
Ninja = Generates build.ninja files (experimental).
Unix Makefiles = Generates standard UNIX makefiles.
CodeBlocks - Ninja = Generates CodeBlocks project files.
CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
Eclipse CDT4 - Ninja = Generates Eclipse CDT 4.0 project files.
Eclipse CDT4 - Unix Makefiles
= Generates Eclipse CDT 4.0 project files.
KDevelop3 = Generates KDevelop 3 project files.
KDevelop3 - Unix Makefiles = Generates KDevelop 3 project files.

So i supose cmake without gui can't find all the generators the gui version is finding?
Back to top Go down
View user profile
Seregon
Regular


Posts : 263
Reputation : 37
Join date : 2011-08-10
Location : UK

PostSubject: Re: Microbe Stage Development   Wed Jan 30, 2013 8:10 pm

Thats odd. I have noticed that CMake-GUI behaves differently to whatever netbeans is calling...

My final suggestion for tonight is this (need sleep before work tomorrow, I'll carry on working on this then if you've not fixed it):
For some reason CMake-GUI succeeds more often than netbeans does when generating. Clear the cache (delete the contents of build/), run CMake-GUI and configure/generate using either Unix or MinGW makefiles, then in netbeans (with the same generator), generate again... it sometimes works for me.

Oh, and I appear to have CMake 2.8.10, so it may be worth updating yours?

edit - and another possibility. CMake will complain when trying to create mingw makefiles if sh.exe (part of msys) is on your path, you can remove it from your path if you have it installed seperately, but I also have it as part of mingw (C:\MinGW\MSYS\1.0\bin\sh.exe). Removing the msys folder from mingw may fix some issues (don't delete it, put it somewhere safe for now). It may also complain about the sh.exe in cygwin... Actually, having just typed this, I don't think your having this issue (but it might be worth a look anyway), what I did notice is that your error contains cygwin references, and I've never seen cygwin mentioned in any of my logs, so for some reason it's getting used in your builds but not mine... do you have MSYS installed at all?
If not, consider installing it (http://www.mingw.org/wiki/MSYS). Not having it may explain the lack of msys makefiles option (possibly even the mingw option). I can't remember what I did when installing it, if anything, so can't make any more suggestions there. That really is all I can think of for now, let me know how you get on and I'll try and help further tomorrow.
Back to top Go down
View user profile
Daniferrito
Experienced


Posts : 726
Reputation : 70
Join date : 2012-10-10
Age : 22
Location : Spain

PostSubject: Re: Microbe Stage Development   Wed Jan 30, 2013 8:42 pm

Didnt work. Trying to compile with the gui and Unix makefiles just gives me the same error the others give me in netbeans. The mingw one doesen't change anything when back at netbeans. Updating didn't help either.

I tried uploading stuff from netbeans directly to github, and it says it succeded, but it didnt appear on my repo. Is there somethig that i'm missing? Is it uploading it somwhere else?

Edit in response to edit:
Neither MSYS nor cygwin are in my PATH. However, to be safe, i deleted the whole folder containing cygwin. Then, NetBeans complained about cygwin/bin/cmake.exe not being there. I dont know how it found it.

I uninstalled NetBeans to make sure, reinstalled, and I discovered that adding cmake to the path actually helps. Facepalm. Once that was solved, it still couldn't find the Unix Makefiles, so i switched to MinGW. It worked and generated the makefiles. Now it just asks for the make command. It suggests to use make.exe, from the MSYS, but if i use that one, it just printsthe folowing lines in the console and gets stuck there, not doing anything. Any help is apreciated. The makefiles generated work if i do the mingw32-make install command manually. Specifying that as the build comand just tells me that it is unsuported by netbeans, that i should use the one from MSYS. Tomorrow i will try to reinstall MinGW and MSYS.
Lines from console:

Microsoft Windows [Versi´┐Żn 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.

A pair of notes on the netbeans setup:

-When cloning from git, it is really important to add .git to the address you copy from the web. Might seem obvious if you are very used to github, but it took me half an hour to realice it the first time.
-Also cloning from github takes time. The indication that netbean makes saying that it is still working is quite easy to miss (bottom right). Probably saying that the prompt that asks you to create a project will probably take some time.
Back to top Go down
View user profile
liminal18
Newcomer


Posts : 20
Reputation : 1
Join date : 2012-10-25

PostSubject: Re: Microbe Stage Development   Thu Jan 31, 2013 9:42 am

still getting this error with all tutorial files:

C:/Users/Andrew/Downloads/OgreSDK_MinGW_v1-8-1/include/OGRE/Threading/Ogr
HeadersBoost.h:36:32: fatal error: boost/thread/tss.hpp: No such file or
ry
compilation terminated.
mingw32-make[2]: *** [CMakeFiles/ogre3dtut.dir/main.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles/ogre3dtut.dir/all] Error 2
mingw32-make: *** [all] Error 2

I checked the forums and there are literally tons of people who have reported this error, but none of the solution theads work for me so far.
Not sure why OGRE_HOME isn't set correctly.

might be fixed now getting:

Linking CXX executable bin\ogre3dtut.exe
c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: cannot fin
d -lOgreMain
c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: cannot fin
d -lOIS
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [bin/ogre3dtut.exe] Error 1
mingw32-make[1]: *** [CMakeFiles/ogre3dtut.dir/all] Error 2
mingw32-make: *** [all] Error 2

according to the forum thread it helps if i move ogre to a more sensical place, reset my path variable for OGRE_HOME, and then restart.
hopefully compiling is on it's way.


Last edited by liminal18 on Thu Jan 31, 2013 10:19 am; edited 1 time in total
Back to top Go down
View user profile
Daniferrito
Experienced


Posts : 726
Reputation : 70
Join date : 2012-10-10
Age : 22
Location : Spain

PostSubject: Re: Microbe Stage Development   Thu Jan 31, 2013 10:03 am

@liminal: Make sure you got boost correctly installed and that BOOST_HOME is pinting to where you installed boost. It seems that the problem is that it cannot find it.

@Seregon: I finally found how to push changes into the github repository. The page you linked only says to do git/commit, but that only moves it to the local repository. Then, you need to git/remote/push in order for the files to end up in the online repository. You can see my code in my repository, as you asked me to upload it.

Note that i added an edit to my previous post, in case you alredy readed it and miss it.
Back to top Go down
View user profile
Seregon
Regular


Posts : 263
Reputation : 37
Join date : 2011-08-10
Location : UK

PostSubject: Re: Microbe Stage Development   Thu Jan 31, 2013 10:19 am

@Dani - ah... I should've thought of adding cmake to the path. It looks like netbeans was using cygwins cmake, wheras cmake-gui uses the installed one (also explains why updating didn't change anything). The unix makefiles are probably missing as you have neither cygwin nor msys, I'm guessing you'll want to install cygwin for other things, so I won't worry about that for now.

The make command i use is 'mingw32-make install' instead of '${make} -f makefile install', which works fine for me (check mingw is still in your path?). I also occasionally get the two lines you got, and it stalls, all I do then is right click the process (bottom right), cancel, and build again, it ussually works the second time. Those two lines are what cmd.exe prints on startup, for some reason it either isn't printing the rest of the output (in which case it should finish, but having left it for 10 mins it's still stuck), or it's not running mingw. I'm not sure how to fix this, but you might try changing the build command to 'cmd.exe /c mingw32-make install'.

Regarding the setup, I'll add notes about .git (though github does provide a textbox near the top of the page with the correct address), and time taken for cloning.

Re: ninja-post... the page I linked does mention the need to push, but it is rather long winded, so I guess I should point that out too. Will have a look at your repo later on.

@Liminal - I'm a little stumped on this atm, I had the same problem, but I'm not entirely sure how I fixed it. As with you, CMake seemed to assume boost was in c:\boost, and ignored any environment variables I set to tell it otherwise. I think I ended up copying the libraries and headers into c:\boost to get it working. Note that if you do that, tss.hpp should be at C:\boost\boost\thread\tss.hpp, and not C:\boost\thread\tss.hpp
Back to top Go down
View user profile
Daniferrito
Experienced


Posts : 726
Reputation : 70
Join date : 2012-10-10
Age : 22
Location : Spain

PostSubject: Re: Microbe Stage Development   Thu Jan 31, 2013 10:52 am

Ok, I'm much closer now. I set the make command to the make inside MSYS, and changed the build command to mingw32-make install, and now NetBeans can build the project succesfully. But whenever i start it, a window pops up saying:

"This application has requested the Runtime to terminate in an unusual way.
Please contact the aplication's support team for more information."

If i just double click the .exe, it works fine, but both cmd and netbeans finish with the same problem. I believe netbeans is using cmd to open the exe, and that cmd is the one giving problems.

About Boost: I got bost installed at C:/boost_1_52_0, and noone complains about it. from the ogre wiki, i have all this variables pointing to it-> BOOST_INCLUDEDIR BOST_ROOT boost_DIR , and BOOST_LIBRARYDIR is pointing to C:\boost_1_52_0\lib Maybe make is trying to find one of those? Probably you alredy tryed it, but just in case.
Back to top Go down
View user profile
Seregon
Regular


Posts : 263
Reputation : 37
Join date : 2011-08-10
Location : UK

PostSubject: Re: Microbe Stage Development   Thu Jan 31, 2013 11:41 am

Sweet! Getting it to run is simple, I just forgot to add the instructions:

- Run -> Set Project Configuration -> Customize
- Run -> Run Directory : build/dist/bin

and it should work. I've yet to test debugging with netbeans (haven't needed to), so that might require a little more setup. I also need to create build configurations for a debug and a release build (currently it should be building 'RelWithDebugInfo', which should be the best of both worlds).

I have to get back to work now, tonight I'll update the instructions in the resources thread with everything we learnt here, and I'll also have a look through your code Dani.
Back to top Go down
View user profile
Daniferrito
Experienced


Posts : 726
Reputation : 70
Join date : 2012-10-10
Age : 22
Location : Spain

PostSubject: Re: Microbe Stage Development   Thu Jan 31, 2013 12:28 pm

Great, it works. I though it was something like that (cannot find right libraries), but my guess was that it wasn't using PATH.

Other than that, i would like to have access to error traces (or at least know what exception it launched). For example, if i try to access element -1 from an array, it should say arrayOutOfBoundsException, and possibly the line that caused the exception. I'm not sure how possible it is in c, never debuged a c program.
Back to top Go down
View user profile
Seregon
Regular


Posts : 263
Reputation : 37
Join date : 2011-08-10
Location : UK

PostSubject: Re: Microbe Stage Development   Thu Jan 31, 2013 12:43 pm

There is an ogre.log file in build/dist/bin which include some error information (this output should be the same as that in the Output window in netbeans when running). Currently all exceptions are caught in main.cpp and displayed in a messagebox (pretty much all the errors we've been seeing when running are exceptions of some description). We should be catching exceptions elsewhere too (if we're able to deal with them without crashing), and I'll have to check how much of an error trace we get with the current method.

Debugging C++ is (depending on the debugger - I've only used MSVC) pretty similair to java, though you lose a few features like JIT. I need to have a go at it to figure out exactly how netbeans does it (and whether I need to change the build type).
Back to top Go down
View user profile
Daniferrito
Experienced


Posts : 726
Reputation : 70
Join date : 2012-10-10
Age : 22
Location : Spain

PostSubject: Re: Microbe Stage Development   Thu Jan 31, 2013 1:44 pm

Yes, i saw the try catch, and the message box. However, the only window i get tells me that thrive.exe stopped working, and nothing else. Maybe because we are catching only Ogre::Exceptions, but not exceptions from c++ itself? I've been looking and c++ doesen't seem to throw exceptions the same way java does, so it might not be possible.
Back to top Go down
View user profile
Seregon
Regular


Posts : 263
Reputation : 37
Join date : 2011-08-10
Location : UK

PostSubject: Re: Microbe Stage Development   Thu Jan 31, 2013 1:54 pm

ah, we should be able to catch a c++ exception (std::Exception?), I'll have to check. C++ exceptions work very similairly to java, except that java forces you to throw or catch them, whereas c++ allows you not to (in the hope or knowledge that they never occur, or if you intend to deal with them elsewhere).
Back to top Go down
View user profile
Daniferrito
Experienced


Posts : 726
Reputation : 70
Join date : 2012-10-10
Age : 22
Location : Spain

PostSubject: Re: Microbe Stage Development   Thu Jan 31, 2013 2:12 pm

I alredy tried std::Exception. It resoults the right naming is std::exception.

The program still crashes when trying to access element -1. the same for a null pointer exception. Reading through the internet seems to indicate that only MVSC has exceptions, and that normal c++ dont. The program shouldnt be throwing exceptions anyway, that feature only helps us to find the problem quiker.
Back to top Go down
View user profile
Seregon
Regular


Posts : 263
Reputation : 37
Join date : 2011-08-10
Location : UK

PostSubject: Re: Microbe Stage Development   Thu Jan 31, 2013 2:27 pm

Ok, seems my C++ is rustier than I thought. It looks like invalid array indices don't throw exceptions, you have to do that manually (though we should be using the STL arrays for this, which I *suspect* do throw exceptions for that sort of thing). Null pointers also behave differently to java (as c++ isn't managed, null pointers are still valid, they just don't point to anything - this is one of the reasons we need to be careful with memory management). I also need to have a good look at using c++11's shared_ptr<>'s soon - I've got them working and compiling, but can't get code assistance for them just yet.
Back to top Go down
View user profile
Daniferrito
Experienced


Posts : 726
Reputation : 70
Join date : 2012-10-10
Age : 22
Location : Spain

PostSubject: Re: Microbe Stage Development   Thu Jan 31, 2013 3:09 pm

I'm just using whathever arrays you defined for the backgrounds.

On a side note, i've been messing with the code a bit. I've added a third cell, with a different texture, and made the controlls affect the cell instead of the camera. The cells now slow down every step, simulating friction.

Moving the camera after the cells seems to solve the jittering.

As a side effect from reusing the controlls for the camera, the cell is able to move up and down, and the camera follows it right. I left that in.

The executable is here.

@Seregon I dont know how you managed to post things from dropbox before they were uploaded. It doesent allow me to share a link before it is completelly uploaded.

Edit: I'm uploading the code to my repo. I left most of the lines that are no longer needed commented instead of deleting them.
Back to top Go down
View user profile
Seregon
Regular


Posts : 263
Reputation : 37
Join date : 2011-08-10
Location : UK

PostSubject: Re: Microbe Stage Development   Thu Jan 31, 2013 4:07 pm

The links I had wheren't shared, they were in my public folder, then right click -> get public link. I'll have a look through your code soon, just getting some dinner sorted first.
Back to top Go down
View user profile
NickTheNick
Overall Team Co-Lead


Posts : 2312
Reputation : 175
Join date : 2012-07-22
Age : 20
Location : Canada

PostSubject: Re: Microbe Stage Development   Sat Feb 09, 2013 3:39 pm

Pardon my coding ineptitude, but what has been programmed so far and what is left to program? Who is working on what? I just want to update the OP's task list.

Also, ido, where are you?

_________________
Look at how far we've come when people thought we'd get nowhere. Imagine how far we can go if we try to get somewhere.
Back to top Go down
View user profile
Daniferrito
Experienced


Posts : 726
Reputation : 70
Join date : 2012-10-10
Age : 22
Location : Spain

PostSubject: Re: Microbe Stage Development   Sat Feb 09, 2013 4:50 pm

So far, i've been working on the Entity Framework. Basically that's the base that will handle the whole game. The base is done, it just needs to be pretyfied. Once that is done, we need to start using it: adding entities to the world, adding systems that controll them,...

Seregon was working on a better input handling. However, last time i talked with him, he was quite busy.

On the list of things to do, i would say:

-Finishing the entity framework (nicer code, making it faster, removing unnecessary lines...)
-Start adding systems to controll the entities (colision system, controll system (Keyboard, AI), compounds,...)
-Setting up a GUI.

The order is just as they came to my mind, not by priority or importance.

The framework system is in the repo, for whoever that wants to help with it. It is in a branch with my name untill it is correct enough to merge with the main branch. Any help is apreciated.
Back to top Go down
View user profile
~sciocont
Overall Team Lead


Posts : 3406
Reputation : 138
Join date : 2010-07-06

PostSubject: Re: Microbe Stage Development   Sun Feb 10, 2013 9:58 pm

I always feel a bit remiss for not commenting on these threads, as they're a bit out of my depth. Just keep in mind that I'm reading and I'm very excited and grateful for what you're doing. You're excellent, guys.

_________________
Remember our goals: simplicity, science, and playability. Keep them in mind always.
[OE]|[FAQ]|[Wiki]|[My Blog]
Back to top Go down
View user profile
NickTheNick
Overall Team Co-Lead


Posts : 2312
Reputation : 175
Join date : 2012-07-22
Age : 20
Location : Canada

PostSubject: Re: Microbe Stage Development   Mon Feb 11, 2013 2:53 am

Okay, I updated the OP, so whoever is doing what or wants to do what post here and I'll add your name beside the task.

_________________
Look at how far we've come when people thought we'd get nowhere. Imagine how far we can go if we try to get somewhere.
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Microbe Stage Development   Today at 2:40 pm

Back to top Go down
 
Microbe Stage Development
View previous topic View next topic Back to top 
Page 3 of 6Go to page : Previous  1, 2, 3, 4, 5, 6  Next

Permissions in this forum:You cannot reply to topics in this forum
Thrive Game Development :: Development :: Programming-
Jump to: