noio / kingdom

A minimal game.
Other
190 stars 56 forks source link

Farmers do not farm/build #1

Open Drake008 opened 9 years ago

Drake008 commented 9 years ago

So for the first time after "some" years I tried to compile something for myself to see how this works. I just compiled Kingdom as it is with no changes at all (except for the exclusion of mochi wrapper)

So my problem is that the farmers do not leave the "camp" to build walls or farm crops. Same goes for the hunters.

Is there something I do wrong or what is left out?

noio commented 9 years ago

This code should yield the exact game that you can play on noio.nl/2013/10/kingdom/ . Could you check if the behavior is different there?

Farmers will only work on farms inside the castle walls. Hunters will not go far outside them.

Drake008 commented 9 years ago

Your version is perfectly working, of course. So could it be that I have changed the mochiwrapper to preloader and that I removed the n: MochiWrapper.SCOREBOARD_ID, from the gameoverstate.as?

noio commented 9 years ago

Unless you are getting runtime errors, it is unlikely that changes to the MochiAds implementation affects the behavior of NPCs.

Make sure you remove any reference to the Mochi API and check for runtime errors.

Drake008 commented 9 years ago

I wanted to test if everything works with Mochiwrapper still in the gameoverstate.as but I think I need something to compile then because I get a Mochiwrapper error. As I cannot put mintty in english (even when I put it in the options) there is just this error ---> Zugriff auf eine nicht definierte Eigenschaft MochiWrapper

It translates crude like this

Access to a not definied attribute MochiWrapper

noio commented 9 years ago

Removing any reference to the Mochi API is definitely the way to go. Make sure to use the regular Preloader in king.as too.

Also make sure to use a Debug Flash Player to catch any runtime errors. Check the Flash Debugger or alternatives .

Drake008 commented 9 years ago

I have the debugger installed and it tells me so in the options but there is no logfile created even with the mm.cfg in the \users\myprofilename folder. Also when I click on "Debugger" the Flash Player wants to connect to a debugger via IP / Localhost.