Jump to content

ghoti

Members
  • Posts

    34
  • Joined

  • Last visited

  • Donations

    0.00 GBP 

Posts posted by ghoti

  1. I have not tackled the ACE issues yet (probably should tho, heh), but I was able to merge commits from mangos and edit the CMake files very easily.. I guess It is a proof of concept that managing cmake is easy enough, the bonus for sql updates is that there is no need to edit/commit the makefile for the sql/updates folder (one line in the CMake handles all *.sql in the dir :D)

    On to the ACE stuff now

  2. It looks like ACE is broken afterall... it lied to me. (does it revert to the distro ACE if it cannot find the header's mentioned above? i really dunno)

    I guess until we fgure out how to properly build ace with cmake the distro versions will have to suffice :-\\

    for ubuntu that is libace-dev - the question is, has mangos made any changes to ace that the distro versions wouldn't have?

    i'm not exactly sure what this does, but i think this can configure this systemconfig.h.in file

    configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/shared/SystemConfig.h.in

    ${CMAKE_CURRENT_BINARY_DIR}/src/shared/SystemConfig.h)

    can this same method be applied to the ACE headers as well? I guess i need to read the ace help files and get to learnin' ;-p

  3. Well I've got something working, it compiles, however i've not tested this past that..

    There is problem with ACE because you need to build the ace/config.h file ( which is what autoheader does, ACE offers also a way to build without automake, just using GNU make, infact automake support is experimental and not complete ).

    Anyway if using cmake you need a way to generate some headers that normally autoheader and configure generate, like ./dep/ACE_wrappers/ace/config.h ./config.h ./src/shared/SystemConfig.h.

    I didn't run across any problems with ace, however the src/shared/SystemConfig.h gave me troubles.. I cheated for now to just get it to compile by renaming SystemConfig.h.in to simply SystemConfig.h - I really don't know the full extent of what that will break (I'm guessing it will just spit out @VERSION@ rather than the actual version #.. i dunno, that is above me.

    you can see what I have at http://github.com/ghoti/mangos - please be gentle, Im quite new at this (as you can tell by the million "typo" or "forgot this file" commits lol

    As I said before, I blatantly ripped most of this from Trinity and just tweaked and changed a lot

  4. I've started a little bit, though, I will admit, most the the grunt work is blatantly ripped from Trinity.. heh

    cmake is for sure faster and easier to work with (with at least modifying) cmake clocked in at:

    real 0m0.355s

    user 0m0.236s

    sys 0m0.116s

    whereas autotools:

    real 0m58.991s

    user 0m55.263s

    sys 0m1.500s

    AND the configure script:

    real 1m13.355s

    user 0m42.051s

    sys 0m19.305s

    a 2 minute PLUS difference.

    This of course is with a vanilla mangos, no sd2, etc..

    I'll keep toying around and making sure i've got everything covered. I'll make a git fork to share here soon too :D

    There are advantages I think, cmake is a bit easier with syntax, so other projects and core additions once they make the change would have an easier time (in my view anyway) patching in (for makefiles). Plus, the eyecandy of the build is nice (colored output, progress %, etc) I find the build error messages are cleaner too, instead of staring at the matrix when something goes wrong lol.

  5. I know this is a slighty older thread..

    but is anyone still interested in cmake over autotools? I see more and more projects leaving autotools for cmake and wondering if it's still a feasible thing?

    I was considering making an attempt on my own, if only to learn cmake..

    thoughts?

  6. I love this patch/addition to the core.

    My suggestion? Add a command to mangos to reconnect if something goes wonky and the irc server dies. I know mangchat will try up to X amount of times when the server starts, but if the server has been running for a few houes and the irc server goes out, then comes back, it does not attempt (as far as I can tell).

    maybe:

    .mangchat connect

    .mangchat disconnect (dunno why, but someone would/could use it im sure)

    .mangchat status (returns offline/online? just ideas)

    Is that something easy to implement? I truly do not know, either way, thanks!

    EDIT: I see brunogcar suggested something similar above, sorry for the double idea then :S

  7. Anyone ever try, or heard of distcc for *nix users?

    http://distcc.googlecode.com/svn/trunk/doc/web/index.html

    I've been meaning to tinker with it (I have 4-5 computers in my lan for various uses that don't get used much) and have just been too lazy ;)

    I figure MaNGOS and SD2 are good candidates for such a thing, as would wine, and the kernel (if you are into that sorta masochism, heh) - each takes a while on even somewhat beefy machines and could make testing compilation bugs easier/faster in the long run, no?

    I always look for new shiny toys.

  8. I beleive he was referring to copying a pay character to a pdump for mangos. I think there was a project for this some time ago, copycat i think?

    I started off real solid, but interest seems to have died down. I think the old version of this (from a VERY old mangos rev) is still stickied at udb. It was php based so could be done in a terminal or through the web to import manually into the character db :)

  9. I had much more than one line with the latest auctionhouse bot to fix (several if statements, and a few other tibits that git didn't like)... I wasn't complaining per se as just making a side joke :-\\ Perhaps my linux git was just being silly, eesh. I guess I should add that I did not use "your" mangos fork and have done all this manually, I prefer sticking to the origin and adding things in myself to force myself to fix (and learn) things as they happen.

    And the makefile whitespace error is still a nuisance (no vimdiff needed there ;))

  10. Finally got this to work - Whew!

    What I've noticed..

    In the PM screen with Mangchat, it says TriniChat - purely cosmetic ;)

    I had to specify ./mangos-worldd -m ../etc/mangchat.conf (the location of my confs) expicitly, is that normal? does it not follow the sysconfdir with configure? maybe even conbine it with the mangos.conf? again, cosmetic, but hey.

    achievement notices would be awesome.

    havent tested it all, or had a real chance to play with it yet, but i like it, for sure.

    a how to on setting this up would be nice for others, the original wiki is no more i think and the original google-code is bare as well (i searched a lot ;)) - i figured it out, after much trial and error at any event.

    Im sure Ill come back to you with more complaints/suggestions as I use it more :)

    I have it running right now with an empty server, so no crashes yet

    Thank you much - handy tool this is :D

    And yes, merging this with auctionhouse bot is a pain in the .... thank god for vimdiff!

  11. Well.. er.. ok. It seems you are making it out to be more difficult than it is.. (fork mangos official, make changes, push, tell people your branch, done)

    But thanks anyway, I'll wait for paradox to fix the "official" since i prefer using git (easier to manage imo)

    Perhaps you should help paradox and tell him what you did, make things faster and easier to all :D

    edit: after downloading and looking in the archive, even diffs would have been nice :( again, thanks for the work tho - ill still wait

  12. I came across this a few nights ago and thought maybe some would be able to use it here (with so many mysql problems ;))

    Mysqltuner is a perl script that will give you insight and suggestions to your mysql configuration. Ubuntu users it is in the universe repo I beleive [ apt-get install mysqltuner] (can't say for other distros) and window users... Well I've heard that you can run perl in windows, but I've never tried :-p

    http://wiki.mysqltuner.com/MySQLTuner

    Worth a look for those with "laggy" databases, etc.

    Enjoy :)

  13. I am pretty new here, but I've seen as much:

    Mega-Servers with 1000+ populations that ask for money and use copywritten material on public wepages have been pursued by Blizzard.

    Mangos (been around a long time and even mentioned on said mega-servers) is still around and never had to worry about "being shutdown by the man".

    I'd be willing to bet the 47 cents to my name (I may be exaggerating, I recently bought some ice cream and that could be less) that Blizzard and Co. know full well of mangos and other such projects. I'd be willing to bet that's why they like to toy with things like spell id's and things of that nature - to make things "fun" for developers of such projects.

    I've learned a tremendous amount in the few small months I've been toying around with these things. I almost know a little sql, can almost understand some lines of the source code, and feel very important to the 6 people who enjoy themselves on my lan server (including myself).

    And as a side note, I think the people who "work" here and at other projects related to mangos deserve to be on a high horse. They put up with people like you all the time :D

  14. What if a multiboxer logged off once, but not both? Would account.online be set to 0 even though they're still logged in on another character? How would MaNGOS handle being told a person is offline, but seeing them online?

    I think it is obvious, eh?

    A black hole would open and every computer in the world with WoW (any version will do) will be sucked up and destroyed.

    Or worse yet: Each mangos server would develop some weird psychological disorder involving multiple personalities and the like. It would be chaos, and awesome!

  15. Webmin is nice, but I've found that it borks up config files a lot of times. Maybe I do something wrong every time I try it, so I stick with just the console - I've also learned far moreover the years forcing myself to learn the commands and syntaxes and structure of stuff, when something breaks, I mostly know why and am able to fix it myself now because of it.

    howtoforge has a very nice selection of step by steps for setting up various distros (desktops and servers) for those just discovering the mighty penguin.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use