Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30

Thread: ENET for pascal

  1. #21

    ENET for pascal

    Quote Originally Posted by Parcel

    Yes, I'm.

    If a new version, I apply it again.

    I think current version is rocksolid.

    this translation is no problem in my test, but not fully tested in public.

    Is underscored identifiers bad idea?
    i dont' mean underscores in general, i mean the one on the dll. In there names start with an underscore (in red):

    [pascal]function enet_initialize : integer; cdecl; external enetdll name '_enet_initialize';[/pascal]

    I don't know if that's an artifact of compiling a dll or if someone changed it or whatever else

    The problem is that when i tried to make your headers cross platform, it turned out that libenet.a (in linux) doesn't have the underscores.
    This mean i have to do something like:
    [pascal]
    {$IFDEF linux}
    const PREFIX = '';
    {$ELSE}
    const PREFIX = '_';
    {$ENDIF}
    function enet_initialize : integer; cdecl; external enetdll name PREFIX+'enet_initialize';[/pascal]

    which is not very nice.
    If you save your data in a proprietary format, the owner of the format owns your data.
    <br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>

  2. #22

    ENET for pascal

    Quote Originally Posted by {MSX}
    Quote Originally Posted by Parcel

    Yes, I'm.

    If a new version, I apply it again.

    I think current version is rocksolid.

    this translation is no problem in my test, but not fully tested in public.

    Is underscored identifiers bad idea?
    i dont' mean underscores in general, i mean the one on the dll. In there names start with an underscore (in red):

    [pascal]function enet_initialize : integer; cdecl; external enetdll name '_enet_initialize';[/pascal]

    I don't know if that's an artifact of compiling a dll or if someone changed it or whatever else

    The problem is that when i tried to make your headers cross platform, it turned out that libenet.a (in linux) doesn't have the underscores.
    This mean i have to do something like:
    [pascal]
    {$IFDEF linux}
    const PREFIX = '';
    {$ELSE}
    const PREFIX = '_';
    {$ENDIF}
    function enet_initialize : integer; cdecl; external enetdll name PREFIX+'enet_initialize';[/pascal]

    which is not very nice.
    ah, I read first page post lately.

    If you trouble with underscore, change with this make file.

    [quote]
    BPATH=$(MAKEDIR)
    INCLUDEPATH=$(BPATH)\..\include
    LIBPATH=$(BPATH)\..\lib

    CC=$(BPATH)\bcc32
    RC=$(BPATH)\brcc32
    ]

    If you don't want CRC check, remove '-DUSE_CRC32'.
    What you see is what you do.
    <br />
    <br />Sorry, I'm not English well.

  3. #23

    ENET for pascal

    Sorry for reviving this somewhat old thread, but I just found out about this unit, and I was wondering if someone could post some working sample code. I already found http://www.afterwarp.net/forum/thread1274.html this sample, but I can't seem to get it to work. The server sample wont compile due to some error in onethread.start (my version apparently requires additional parameters) and the client sample assumes a combobox of which I'm not certain what values I need to fill it with.


    Thanks

  4. #24

    ENET for pascal

    I just found this thread too, I've downloaded the sample and I'll see if I can get it to work
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

  5. #25

    ENET for pascal

    http://www.mediafire.com/?5x1zcvxexda

    It has some new and simple example.
    What you see is what you do.
    <br />
    <br />Sorry, I'm not English well.

  6. #26

    ENET for pascal

    I'm having trouble getting a shared object (or a DLL) out of the projects provided. Anyone got any tips, I'm trying to get the .so under linux and I'm afraid I'm a bit rusty in this area .


    Also does someone have an updated cross platform header for this library?
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

  7. #27

    ENET for pascal

    Quote Originally Posted by Traveler
    Sorry for reviving this somewhat old thread, but I just found out about this unit, and I was wondering if someone could post some working sample code. I already found http://www.afterwarp.net/forum/thread1274.html this sample, but I can't seem to get it to work. The server sample wont compile due to some error in onethread.start (my version apparently requires additional parameters) and the client sample assumes a combobox of which I'm not certain what values I need to fill it with.


    Thanks
    Here's a working demo i wrote to get familliar with ENet for my current project

    http://www.phoenixlib.net/files/EnetDelphi.rar
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

  8. #28

    ENET for pascal

    Wow, this awesome. Thanks a lot Andreaz, and you as well Parcel!

    Btw, how's it going Andreaz? We haven't heard from you in a while. Still working on PhoenixLib? You might be interested to know that I'm using it to recreate Village Defense. Things have been a bit quiet on my website for a long while, but that has changed in the last month. I've posted some updates along with some screenshots and a video.

    Anyway, If you have a few spare minutes, let us know, I'm sure more than a few of us are interested to know.

  9. #29

    ENET for pascal

    Well, what can i say, life's been busy

    The work on phoenix is progressing, not as fast as i would like but there's alot of stuff happening in the shadows

    Doing a big rewrite of many of the parts of the lib, for greater speed and more features.

    The next version will support 3D rendering and alot of other features, i'm adding a native texture format that loads 260% faster then the freeimage loading code.

    Also coded a model loader with support for gpu based skinning and alot of supporter classes for 3D rendering including camera support and shaders.

    The list of changes is huge and the ones listed abowe is just a small part, I'm working on a 2D in 3D game as a platform for the development of Phoenix, wich helps in getting the library into a more solid state.

    Great to hear about the village defence project, give me a tell if you need some help, your projects has always been a great inspiration to me.
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

  10. #30

    ENET for pascal

    I got this working under Linux . It seems nice and quick. I'll post the code of the simple command line demos when I get a moment.

    next stop get it working on Windows and OS X .

    I think we need a single place to store the interface unit to the dll. Perhaps we need to contribute a unit to free pascal.

    I'm not using the transalated code at the moment, as the library is now verison 1.2 I'm not sure what version the translation is.
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

Page 3 of 3 FirstFirst 123

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •