You're not registered yet. Click here to register. Credits 
You can register here for free.
This topic has 3 replies
and has been read 146 times
 Bugreports & Suggestions
LawrenceA Offline



Posts: 1

Mon Dec 21, 2015 5:09 am
Compile under Lazarus missing *.obj files Quote · reply

Hi! Being a newbie to Pascal, I thought a good way to learn both the language and this entertaining game would be to see if I could compile it under Lazarus Windows. Unfortunately it states that it cannot find the *.obj files such as board.obj. Any thoughts?


Scotty Offline

Administrator


Posts: 3.609

Mon Dec 21, 2015 10:04 pm
#2 RE: Compile under Lazarus missing *.obj files Quote · reply

I add ressources to the executable using the {$I ...} compiler switch. Ressources are images, for instance the tiny flags in the tooltip on gameserver) or the cursors for drag operations, that are named *.lrs. But I have also *.obj files for the OpenGL model and textures- and thoses files are named *.obj (for no special reason). And the problem results from the fact that Lazarus has a publish function to copy relevant stuff to another directory but does not include *.obj files by default. To cut a long story short: The obj files are added to the repository now. Sorry.

PS: I don't think my code is good to learn pascal. Rather it is an example how to not do write spaghetti code. Although some units are not that bad. Feel free to ask in case.


Download: Sourceforge | Help:Wiki | Discussion: Forum | News: Twitter | Fanship: Facebook | IRC: Freenode #scrabble3d


Guest
Posts:

Tue Dec 22, 2015 12:31 am
#3 RE: Compile under Lazarus missing *.obj files Quote · reply

Thank you for the prompt response Scotty! Much appreciated. In fact, the client/server application is quite ideal for understanding how it all fits together. Will probably have to ask some more basics over the next few days! :)


Scotty Offline

Administrator


Posts: 3.609

Tue Dec 22, 2015 1:41 am
#4 RE: Compile under Lazarus missing *.obj files Quote · reply

It works, but actually it's suggested to have a thread for every client. My server process data sequentially because it wasn't stable with threads and I'm afraid to touch a maximum number of threads. Synapse has a quite good chat examples that I took as basis for the first code.


Download: Sourceforge | Help:Wiki | Discussion: Forum | News: Twitter | Fanship: Facebook | IRC: Freenode #scrabble3d


 Jump  
disconnected Scrabble3D Chat Members online 1
Xobor Einfach ein eigenes Forum erstellen