07.31.05
Posted in General, Programming at 6:12 pm by Nick
PhpNuke offers the ability to optimize the tables on the database it is using. While I haven’t scoured the PHP code to find exactly what it does, I’ve always liked seeing how it tells me how many KB I have saved. Ever since I added this blog and the CFHS Wiki to it, it optimizes those as well. Now all I need to do is write a module to export them like I can do for the PhpNuke base for back ups.
In any event, I’m going to go ahead and throw MediaWiki up after I take down WikiTikiTavi. ‘Tavi was actually nice and easy, but it just isn’t the same compared to MediaWiki.
Permalink
07.25.05
Posted in General at 11:57 pm by Nick
I’m making a wiki for for my high school. Should be quite schnazzy. I’ll post a link when its a little more…filled out.
Permalink
Posted in Programming at 2:38 am by Nick
Thanks to Greven, I’ve decided to implement a small buffer to store an mprog. This should be handy.
Permalink
07.24.05
Posted in Programming at 5:37 pm by Nick
Just wanted to mention that my hack of a debit card system made it into the SWFotE 2.0 release. Nice of them to put it in there.
Asteroids v1.0 made it into the SWR Custom release on MudMagic some time ago as well.
Permalink
07.23.05
Posted in Programming at 8:39 pm by Nick
The whole reason I began programming was my MUD (multi-user dimension/dungeon). Its like an MMPORG minus the graphics. Its text based. Anyways, I’ve decided to work on GW:A for my upcomming ALPHA project. This is long long LONG overdue. Sadly, as I had to learn something and get a mentor I couldn’t use it for my LAE project last year, as I’ve basically mastered it.
GW:A stands for Gundam Wing: The Awakening. It is the name of my particular MUD, which is now based off the SWFotE 2.0 codebase. I’ve restarted with various codebases, due to the fact that I learned more programming and could make better use of it or I was lazy and didn’t want to port major fixes. In any event, this is where it stands and always will.
Now, to the point of this post. A while ago I created a system for my mud so that the mobprogs on it could check various variables. Since I’m starting over, I had a chance to look at and finish, and expand the code. Since my ALPHA project will entail a lot of work, I figure since I promised it eventually I might as well as get the basic non-new crap out of the way.
The original thought for this was detailed on a post at Gammon’s forum. You can find that post here: http://gammon.com.au/forum/bbshowpost.php?bbsubject_id=4942. I am Whiteknight there, and as you can see (if you scroll down to the bottom of the main page and look at the most frequent posts) I’ve been around there for quite a while. I would be much higher, but I really only dabble in the SMAUG programming section.
Anywho, the Mudvar is probably one of the greatest advancements in muds. With it you can flip a light switch to light up a hallway, turn on a generator to provide power to a central terminal to access some mainframe, or any number of things.
The general syntax in a mobprog follows this:
if mudvar(dog) == 1
mpecho Woof!
endif
Supposing you created the variable dog, and its value was set to 1, the program would echo Woof! Simplistic example, but its how it works. The system came with a few nice advancements. For example, two new mp functions allow you to set a mudvar via mobprog (mpsetvar ) and one to toggle flags on objects/rooms/mobs. These are quite handy.
Thanks to the doubly linked list, it supports a lot of variable seamlessly. However, if you get more then say, 250 you may want to consider altername means (hash table, BST, etc).
Read the rest of this entry »
Permalink
07.20.05
Posted in Programming at 2:31 pm by Nick
Did a little more work on this today. Made a few changes:
- Added the location of the article to the XSLT file (by request)
- Removed global pointer to XML log, now you must open it each time
- Filename of XML log is stored in a global string named “fname”
- The log now has a crash-guard. Simply put, it will always complete your log files.
Still to do before 1.2 is turned into a release:
- Different logging types
The code export will be updated to reflect these changes later.
Permalink
07.19.05
Posted in General at 6:34 pm by Nick
I decided to use a different theme. Looks alright to me, I’ll tinker later.
Permalink
07.18.05
Posted in Programming at 5:10 pm by Nick
Made two significant changes to this code. First, you can now set individual characters via the SetStringE() class function (the E stands for element). Secondly, there is a Capacity() function that now tells the max number of characters you can use in the array (not counting the null terminator).
I removed the KILL macro as well. This is C++, not C. Anyways, you can expect a bit more on this once detasseling stops, as I will finish Mini-RPG then.
Soon there will be a bit more development with this string class. To further aid in it, I will create an entire hash structure so that you never have to deal with strings (the ref counts are already in as you can see). Then the main method of obtaining a string will look like this:
String *str = GetString(“stringhere”);
This will simplify things. First, if your string doesnt exist it will be added to the hash table and reffed at 1. If it does, it will have an added ref and return a pointer to the hashed string.
Permalink
Posted in Games at 11:32 am by Nick
Like I promised, I am going to write a short blurb about Dungeons & Dragons and how it can help your creativity, mind, vocabulary and overall understanding of games.
Read the rest of this entry »
Permalink
Posted in General at 1:37 am by Nick
I need to rant a bit. I’m posting here because its a bit less visited, but I really don’t care if the people about to be mentioned see it.
< rant >
Ok, start of the third round, everyones dragging a bit but overall we remain hopeful since tjaden told us only 3 rounds. Me, being me obviously, I slapped on my head phones and did about a 9-10 minute half round. Wade had cleaned off my glasses, so I told him I would dig him out. On the way back, I pass three of our groupies (Mandy, Nic, and Jay). I tell them to triple leap frog back for logan, and they would be done in no time.
So, a few minutes pass, I come to the waterway. Logan and Wade emerge from the corn on the other side. Since the other three aren’t in sight, I decide to head back and let the two leap frog. I get to the end, no sign of the other three. I go back down logan’s row and stop when I get to wade. Logan is still back at the waterway, apparently (and very understandably) dehydrated. He had been drinking his water and his water only, which by now was quite warm and probably festering with backteria. Warm water on a warm day + backteria = sick. And it can make you sick…very sick.
Anyways, we eventually get out of there and head for some water. The other three members have disappated, no where in sight. On their way back to finish the round and get back on the bus. So, logan and wade get the last two in the 4 frame and I go in the final frame. It worked out well that way because wade and logan got dug out, and logan hopped over and helpped a bit towards the end with me.
I’m sure you all can tell where this is leading. Back in the bus the three are sitting there, having been there for several minutes. By now I was not in a good mood… at all. I asked them where they went, why the didnt dig him out. Nic said they got plugged back in.
I highly doubt it. First, they would let you get water. Second, I’ve never heard any of the seasoned vets (like Brian in this case, who was manning our side of the field) complain about digging out your fellow frame members. Not once over two years, and now I’m on number three.
So, this leads me to my final point of this rant. Apparently the well being of themselves is more important of their friends. While I like to be nice and snappy, I seem to accel pretty well in detasseling. I move quickly with good accuracy, and besides the heat I don’t get too tired (goes a little down hill after 10 hours). However, there is no reason why I would go off and satisfy my thirst at the expense of my dehydrated comrade.
In conclusion, Wade and Logan will have much much higher dig-out precidence than any of those three. I’ve never had to do this before, but this basically means Logan/Wade will have a bit easier time on detasseling than them. Go Wade and Logan. Value friendship, especially if one of your friends needs it.
< /rant >
This inspired a non-fiction piece (or idea/journal entry) for creative writing, which can be found at: http://www.nick-cash.com/wp/2005/09/01/journal-3-non-fiction-1/
Permalink
« Previous entries Next Page » Next Page »