It is currently Mon Dec 18, 2017 9:27 pm


Post new topic Reply to topic  [ 15 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: A few compilation fixes
PostPosted: Sun Mar 20, 2011 7:02 pm 
Site Admin
User avatar

Joined: Mon Oct 12, 2009 2:30 am
Posts: 232
I strongly recommend to get a working linux installation as well.
All programmers should be able to test on all platforms.
Its free so there should be no reason not to install it.

As Grunz and I are using Linux as main OS its good to have a windows programmer now as well. We had some errors lately because we did not test enough.

I could fix the errors in the code right now. They are not grave, but it would be nice if you could run a simple test from time to time in f.e. a virtual machine. At least to make sure that the code compiles.


Top
 OfflineProfile  
 Post subject: Re: A few compilation fixes
PostPosted: Mon Mar 21, 2011 2:26 am 
Site Admin
User avatar

Joined: Mon Oct 12, 2009 2:30 am
Posts: 232
I reached Richard through facebook finally :D
So hopefully we get the few things working that do work in purebasic but not in elice yet.
It would be so great to be able to continue using elice.
And I guess its only small things when you really know what you are doing.


Top
 OfflineProfile  
 Post subject: Re: A few compilation fixes
PostPosted: Wed Mar 23, 2011 5:44 pm 
Site Admin
User avatar

Joined: Mon Oct 12, 2009 2:30 am
Posts: 232
I changed the Enumerations by adding a dummy field so that the first relevant field starts with 1.
This fixes the problem with the changed enumerations for now.
As long as richard had no time in fixing the compiler we have to leave it like this.

Now I run in another problem:

Code:
markus@laptop ~/lostlabyrinth/pb $ elice laby.pb                                                                     
quicksort.pbi:89: Procedure peekb not declared (ProgramError)                                                         
        from laby.pb:1379                                                                                             
markus@laptop ~/lostlabyrinth/pb $


poke and peek routines are not yet implemented into elice.
Richard only implemented stuff we use for laby. Its not a fully fledged purebasic compiler and probably will never be.

I wrote richard again but I fear he has no time to do anything on the compiler. Could not do anything for month.

This leaves 2 programmers out of the project in its current state :(


Top
 OfflineProfile  
 Post subject: Re: A few compilation fixes
PostPosted: Wed Mar 23, 2011 6:52 pm 
Site Admin
User avatar

Joined: Mon Oct 12, 2009 2:30 am
Posts: 232
I found loads of things that simply do not work anymore.

The code usees messagerequesters now for linux as well.
There is a reason why we did not use that.
Other than in windows there are a lot of linux machines that have no gtk system installed.
I want laby to have sdl as dependency only. And as soon as you use this stuff we would have to force players to install gnome.

There are other code constructions that elice simply does not support yet.

Linux is the main target of the new laby version. So please if you want to continue helping with this project get linux running first and make sure it runs with elice as well.


Top
 OfflineProfile  
 Post subject: Re: A few compilation fixes
PostPosted: Thu Mar 24, 2011 1:04 am 
User avatar

Joined: Thu Nov 11, 2010 12:38 am
Posts: 161
Location: Norway
Yeah sure. I was not aware that the elice compiler was so underdeveloped and didn't support all the standard PureBasic commands yet.

I had implemented quicksort without using any of the Peek functions, but it was a bit more clunky and not so generalized. My current implementation of the quicksort algorithm allows us to sort any struct of any type with the same algorithm (using memory operation like peek). We could simply revert it to static procedures specialized for sorting specific structure types:

QuickSortMonsterList()
QuickSortSpellList()
etc.

instead of: QuickSort(whichStructure)

It is a pity that we are limited to using the elice compiler though! We can't utilize much of PureBasic's true power (like networking).

Btw: I used messagerequesters because I found a few instances of it already being used in the code. What do we use instead for logging and error messaging?

_________________
Lost Labyrinth Developer
Check out my other game: Egoboo


Top
 OfflineProfile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
GuildWarsAlliance Style by Daniel St. Jules of Gamexe.net
Guild Wars™ is a trademark of NCsoft Corporation. All rights reserved.