News:

Huge spam cleanup. I hope, everything important is still in place. :-)

Main Menu

Get it Compiling 5 years Later

Started by blackshadow, March 17, 2017, 06:40:24 PM

Previous topic - Next topic

blackshadow

Hi,

5 years later I get here. I struggled some days now to get it compiling. (Without success)
First of all: i'm not a pascal developer. So everything is kind of new to me.
My goal is to fix some bugs in the Centred client for my shard, since the latest mul file formats are not supported and so centred is broken for us. :-(

I was really struggling getting everything. Even getting the source code via HG didnt work due to a 404 error.
But I get it file by file from http://redmine.aksdb.de/projects/centred/repository

Then I followed this steps: http://redmine.aksdb.de/projects/centred/wiki/SourceCode

I've tried to get exactly the specified versions. But many links are dead again. :-(
But finally I got everything. Then i've tried to import the packages into lazarus with one error after the other. A while later I came to the conclusion, that none of the versions fit together anymore.

So is there still a way to obtain the environment to build this?

Otherwise the source code seems to be lost and I will have to fix this in assembly code, which is very time consuming. :-(

Kind regards

Hitman

Oh damn, that wiki page really got out of date.
I restructured and modernized some parts of CentrED two years ago ... and also my website changed a bit - it requires HTTPS now.

Therefore to get the source (which you already have ;-)): hg clone https://hg.aksdb.de/CentrED

As far as I can tell, you should be good to go using the most recent Lazarus version (which usually bundles the right FreePascal compiler) from http://www.lazarus-ide.org/.
lnet, multilog, virtualtrees and so on should also be used in their most recent versions. BUT just to be sure, I will setup a fresh development environment tomorrow and note the necessary steps and URLs so I can update the wiki. If you give me one to two days, you should be good to go.

blackshadow

Thanks for your answer. To be honest: I have not expected an answer so soon and thought the forum was already dead. So I'm really happy to hear from you! :-)

I'm really thankful that you are taking the effort to check this. The last few days I've thought about several scenarios how to keep our shard world building team capable of acting.

Looking forward to hear from you soon.


Hitman

I updated the wiki page accordingly.
To my surprise, the build still works pretty flawless with the current FreePascal and Lazarus versions.

Changes (in short):

  • VirtualTreeView v5 is recommended (URL updated)
  • MultiLog URL updated
  • Lazarus 1.6 (or 1.7) and FPC 3.0 recommended
  • Checkout/Clone URL updated (requires HTTPS)

If that does not help you get it compiling, let me know and we will sort this out.

If you want to work on a fork of CentrED, I can happily provide you with an account to https://hg.aksdb.de so you can push your changes (and maybe have me review them :D).
Also I would be very happy if you find a way to "enhance" CentrED with your changes, i.e. leave it compatible to the old MUL format while still being able to recognize and use the new one. That way we could incorporate the changes and don't have to provide two different versions.
That being said: I would be very happy if you publish your changes so all of the UO community can profit from them. Of course the license I chose for CentrED allows you to keep changes to yourself ... it's up to you :-)

But in any case: just tell me when you get stuck.

blackshadow

#4
Thanks for your work. I will take a closer look at it as soon as possible.

*edit*

I spent some time to it right now and run into the problem that i cannot add the package lnetvisual, since it doesn't compile due to the Addr member of a structure is missing.



Am I missing something in my Lazarus installation?

Kind Regards

Hitman

That line looks slightly different in my source tree.
Please try the most recent version from SVN: http://svn.freepascal.org/svn/fpcprojects/lnet/trunk
(I updated the wiki page again :-))

blackshadow

Okay I think i've figured out my problem. I'm not used to the Lazarus concept of package management. So I've messed up some things: It seems to me as if it cached an old version of the package, so I got this compile error. Whatever. Now it works fine for me.

Thanks again and kind regards