Data Realms Fan Forums
http://forums.datarealms.com/

Lord Tim's "IRC Scene"
http://forums.datarealms.com/viewtopic.php?f=24&t=12079
Page 7 of 8

Author:  shelleyerest [ Sun Mar 15, 2009 3:43 am ]
Post subject:  Re: Lord Tim's "IRC Scene"

I sooooo want this for mac god dammit...

Author:  mail2345 [ Sun Mar 15, 2009 4:42 am ]
Post subject:  Re: Lord Tim's "IRC Scene"

In case you didn't know, Tim is not a mac developer.

Really, only a lua using mac dev could port this to a mac due to complicated things involving libraries.

Author:  Lord Tim [ Sun Mar 15, 2009 9:37 pm ]
Post subject:  Re: Lord Tim's "IRC Scene"

Who says I'm not a mac developer?

I'm not, but still.

Anyways, this can be ported to mac if you recompile the C code from the LuaSocket people into whatever mac people use for dlls.

Author:  Flammablezombie [ Sun Mar 15, 2009 10:07 pm ]
Post subject:  Re: Lord Tim's "IRC Scene"

So what Do they use? Because I'd really like to use this.

Author:  mail2345 [ Sun Mar 15, 2009 11:46 pm ]
Post subject:  Re: Lord Tim's "IRC Scene"

They use .dylib

Or .so in rare cases.

Author:  Flammablezombie [ Sat Mar 21, 2009 9:46 pm ]
Post subject:  Re: Lord Tim's "IRC Scene"

'Kay. Because I don't have a compiler I would worship as a god anyone who can compile the lua socket files into a .dylib format.

Author:  mail2345 [ Sat Mar 21, 2009 10:10 pm ]
Post subject:  Re: Lord Tim's "IRC Scene"

Compilers are free.

For the mac, xcode has the gcc compiler.

So, who here has Lua on C++ Mac development experience?

Author:  Flammablezombie [ Sat Mar 21, 2009 10:54 pm ]
Post subject:  Re: Lord Tim's "IRC Scene"

Okay. I will get the compiler, but a step-by-step as to WTFHOW would be nice.

Author:  mail2345 [ Sun Mar 22, 2009 6:29 pm ]
Post subject:  Re: Lord Tim's "IRC Scene"

Should be similar to windows compiling:

    1. Get xcode for mac.
    1a. Get lua compile libraries.
    2. Get Eclipse, an IDE which should simplify things.
    3. Get the source code.
    4. Load the source code into Eclipse
    5. Configure Ellipse to compile into a dylib. <- Hardest part
    6. Compile <- Second hardest part
    7. PROFIT!!!

Or if you like the command line,

    1.Get xcode
    1a. Get lua compile libraries.
    2. Get source code
    3. Configure xcode to make dylibs <- Hardest.
    4. Use the makefile to compile <- Second hardest.
    5. PROFIT!!!

Or if anybody has cross-compiling experience, try use this for win/nix. Linux is somewhat easier due to the more code-oriented nature.

    1. Get an IDE and a cross-compiler. Please note that MinGW as far as I know does not cross compile. GCC is recomended.
    1a. Get Win/nix lua libs and mac core libs + mac lua libs.
    2. Get source code.
    3. Load code into your IDE.
    4. Configure IDE to cross compile into a dylib. <- Very hard
    5. Compile <- You might have some difficulties.
    6. PROFIT!!

Author:  Spartan M43 [ Tue Mar 24, 2009 1:12 am ]
Post subject:  Re: Lord Tim's "IRC Scene"

hey if this works the way i think it does ,(dont flame me), wouldnt it be possible to do something like* multiplayer?




*i say like because you could like affect eachothers game, like !nuke would send a nuke at one of there bases.

Author:  mail2345 [ Tue Mar 24, 2009 1:43 am ]
Post subject:  Re: Lord Tim's "IRC Scene"

Yes.

But there is no synchronization, so it's more like one of those mp tetris game where combos send blocks to the other guys.

It might work in a more suitable way if data gives lua access to game speed, the rng and control interface(aka having all the games on the same rng, same speed and shared controlls).

Author:  Geti [ Tue Mar 24, 2009 1:46 am ]
Post subject:  Re: Lord Tim's "IRC Scene"

we do have access to setting the psuedo-random generator's seed with today's lua.

Author:  mail2345 [ Tue Mar 24, 2009 2:02 am ]
Post subject:  Re: Lord Tim's "IRC Scene"

What function?

Also, is it the lua rng or the physics rng?

Author:  Geti [ Tue Mar 24, 2009 3:00 am ]
Post subject:  Re: Lord Tim's "IRC Scene"

i assume both, but i havnt tested it.. actually, it looks more like it would just be the lua generator.
math.randomseed(seed) is the syntax...

Author:  Grif [ Tue Mar 24, 2009 3:15 am ]
Post subject:  Re: Lord Tim's "IRC Scene"

That's the Lua rng function, guaranteed.

Allegro (well, C++, actually) has it's own rand(); and srand(); functions.

Page 7 of 8 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/