Implementor Erelei Posted February 15, 2017 Implementor Report Share Posted February 15, 2017 This is GENERALLY how I code - sometimes I do edit the source directly if it's something miniscule. Otherwise, it's all done offline and moved over when edited. Of course, when I MUD, my setup is far prettier =P Link to comment Share on other sites More sharing options...
Zavero Posted February 15, 2017 Report Share Posted February 15, 2017 Damn. I've been working on some simple if\then\else statements... I have a long way to go haha. Looks cool though. Link to comment Share on other sites More sharing options...
Trick Posted February 15, 2017 Report Share Posted February 15, 2017 (edited) JIBBER-ish ? P.S. = Keep up the good work. It's appreciated. I wish I understood half of that.. I'd be a better PKer, lol.. I rely on simple strats that work haha!! Edited February 15, 2017 by Trick Link to comment Share on other sites More sharing options...
Fool_Hardy Posted February 15, 2017 Report Share Posted February 15, 2017 Yeah I am still fumbling with the basics in codeblocks myself, I can see how it all comes together, but the size of what we have in place here boggles my conceptions and honestly makes me want to quit trying. Link to comment Share on other sites More sharing options...
aaa Posted February 15, 2017 Report Share Posted February 15, 2017 (edited) C is a fickle beast. My comp sci 101 paper was taught in C and I'm now over half way done with my degree and thought I would play around with the old FL source code as a sorta pet project (they say practicing or coding something you have an interest in helps a LOT) but the standards have changed so much since and my programming ability isn't refined enough to be able to fix it. but...at least I can read it =P @Erelei The offer to help with some snippet stuff still stands =P Edited February 15, 2017 by Wade Link to comment Share on other sites More sharing options...
Magick Posted February 15, 2017 Report Share Posted February 15, 2017 You can see the entire file (or a very large portion of it) on the right hand side? That's awesome! Oddly satisfying to look at, as a whole. The only problem I see with that image is that icon in the upper left. Fruit is bad. Though I'm aware it's a preference, I'll try not to hold it against you too much. Link to comment Share on other sites More sharing options...
Implementor Erelei Posted February 15, 2017 Author Implementor Report Share Posted February 15, 2017 I own a Lenovo Workstation with 12GB RAM and an i7, too, which I run Linux on primarily. So... yes. Apple is a preference most days while I work. Pretty > performance usually when coding doesn't require literally any performance boosts. Link to comment Share on other sites More sharing options...
mya Posted February 15, 2017 Report Share Posted February 15, 2017 Nice. I love how even though there aren't comments, the code is extremely clear and easy to read. Does sublime has C code correction/compilation aids like gVim ? I think I will need a decent C IDE in the future and gVim can be extremely frustrating on copy paste, not to speak that I'm spoiled by Netbeans to use just a colored text editor. Also: "char *translate_parse(..." this is a function that returns a char pointer, right? Why not "char* trans..." instead of "char *trans.."? I read something about this, and avoiding confusions in code, but I kinda forgot. 10 hours ago, Fool_Hardy said: Yeah I am still fumbling with the basics in codeblocks myself, I can see how it all comes together, but the size of what we have in place here boggles my conceptions and honestly makes me want to quit trying. You can pick up most of skills to read C from one of those learn to program books that teaches with C. The only thing you will not understand well is pointers (the * in variable declarations) and structures (used in the tables). Those require non initiate knowledge to really understand. Link to comment Share on other sites More sharing options...
Fool_Hardy Posted February 15, 2017 Report Share Posted February 15, 2017 Oh its not that I do not understand the program. I can write in 8 languages. Its the enormity of creating my own world from scratch that boggles the mind. I am building my own source. Link to comment Share on other sites More sharing options...
mya Posted February 15, 2017 Report Share Posted February 15, 2017 Why reinvent the wheel? OR are you doing it in another way? Link to comment Share on other sites More sharing options...
Implementor Erelei Posted February 23, 2017 Author Implementor Report Share Posted February 23, 2017 On 2/15/2017 at 10:07 AM, mya said: Nice. I love how even though there aren't comments, the code is extremely clear and easy to read. Does sublime has C code correction/compilation aids like gVim ? I think I will need a decent C IDE in the future and gVim can be extremely frustrating on copy paste, not to speak that I'm spoiled by Netbeans to use just a colored text editor. Also: "char *translate_parse(..." this is a function that returns a char pointer, right? Why not "char* trans..." instead of "char *trans.."? I read something about this, and avoiding confusions in code, but I kinda forgot. Didn't catch this comment - char *var and char* var are the same. It's better to use char *var to avoid confusion, especially when you're defining multiple pointers. That said, I said I'd actually post a picture of my mud setup for most days: I know it's absolutely redundant to see a bunch of blurred stuff, but the privacy of a bunch of players depends on that The bottom left window displays all my IMM/IMP/pray chats and the bottom right displays all the WizNet logging that outputs throughout the day. Link to comment Share on other sites More sharing options...
aaa Posted February 23, 2017 Report Share Posted February 23, 2017 As an alt-aholic, knowing you can so easily see how many characters I play gives me anxiety haha. (I'm sorry, I just enjoy leveling so much) Is there a way to privately see that information? Link to comment Share on other sites More sharing options...
Lloth Posted February 23, 2017 Report Share Posted February 23, 2017 For players, no. Why would you need to? You should already know who you play Link to comment Share on other sites More sharing options...
mya Posted February 23, 2017 Report Share Posted February 23, 2017 13 hours ago, Erelei said: char *var and char* var are the same. It's better to use char *var to avoid confusion, especially when you're defining multiple pointers. Thanks. Pointers are the devil. I just wasted 30 min on a segmentation fault because I was declaring a string with :"char * str = "something";" instead of "char str[] = "something";". Of course, this segmentation fault would happen on another file of the small project where i "*str = *str2;" while I was trying to copy into the string... Link to comment Share on other sites More sharing options...
Recommended Posts