From coldstuff@cold.org Mon Nov 4 05:46:57 2002 From: coldstuff@cold.org (Roy Sutton) Date: Mon, 04 Nov 2002 00:46:57 -0500 Subject: [Coldstuff] Prompts and Queues Message-ID: <5.1.0.14.2.20021104004338.01c647f8@mail.mindspring.com> Questions for you guru types: 1) I'd like to add a prompt system to Cold. Has someone already tackled this? 2) I'd like to be able to have certain commands go into a queue before processing (to prevent concurrent commands which should take a while to execute in game time). Has someone tackled this one before? If not, some thoughts on implementation details would be appreciated. Roy From coldstuff@cold.org Mon Nov 4 13:16:41 2002 From: coldstuff@cold.org (Adam Cormany) Date: Mon, 4 Nov 2002 05:16:41 -0800 (PST) Subject: [Coldstuff] Prompts and Queues In-Reply-To: <5.1.0.14.2.20021104004338.01c647f8@mail.mindspring.com> Message-ID: <20021104131641.66476.qmail@web12807.mail.yahoo.com> If you mean on the prompt system, you want a prompt configurable to the user where they can show only their Hit Points, Moves, etc, yes, I've done this. I'll post if anyone is interested in it. --- Roy Sutton wrote: > Questions for you guru types: > > 1) I'd like to add a prompt system to Cold. Has > someone already tackled this? > > 2) I'd like to be able to have certain commands go > into a queue before > processing (to prevent concurrent commands which > should take a while to > execute in game time). Has someone tackled this one > before? If not, some > thoughts on implementation details would be > appreciated. > > Roy > > _______________________________________________ > Cold-Coldstuff mailing list > Cold-Coldstuff@cold.org > http://web.cold.org/mailman/listinfo/cold-coldstuff __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ From coldstuff@cold.org Mon Nov 4 17:52:52 2002 From: coldstuff@cold.org (Roy Sutton) Date: Mon, 04 Nov 2002 12:52:52 -0500 Subject: [Coldstuff] Prompts and Queues In-Reply-To: <20021104131641.66476.qmail@web12807.mail.yahoo.com> References: <5.1.0.14.2.20021104004338.01c647f8@mail.mindspring.com> Message-ID: <5.1.0.14.2.20021104123924.05adda00@mail.mindspring.com> Adam, Yes, that's exactly what I was asking for. I'd love to take a look at what you did. As to the 2nd question it may be unclear what I was asking. I think I have a handle on where to look for the functionality I need. Roy At 08:16 AM 11/4/2002, Adam Cormany wrote: >If you mean on the prompt system, you want a prompt >configurable to the user where they can show only >their Hit Points, Moves, etc, yes, I've done this. >I'll post if anyone is interested in it. > >--- Roy Sutton wrote: > > Questions for you guru types: > > > > 1) I'd like to add a prompt system to Cold. Has > > someone already tackled this? > > > > 2) I'd like to be able to have certain commands go > > into a queue before > > processing (to prevent concurrent commands which > > should take a while to > > execute in game time). Has someone tackled this one > > before? If not, some > > thoughts on implementation details would be > > appreciated. > > > > Roy > > > > _______________________________________________ > > Cold-Coldstuff mailing list > > Cold-Coldstuff@cold.org > > http://web.cold.org/mailman/listinfo/cold-coldstuff > > >__________________________________________________ >Do you Yahoo!? >HotJobs - Search new jobs daily now >http://hotjobs.yahoo.com/ >_______________________________________________ >Cold-Coldstuff mailing list >Cold-Coldstuff@cold.org >http://web.cold.org/mailman/listinfo/cold-coldstuff From coldstuff@cold.org Thu Nov 7 06:50:25 2002 From: coldstuff@cold.org (Khepri) Date: Wed, 6 Nov 2002 22:50:25 -0800 Subject: [Coldstuff] duplicate commands Message-ID: Is there a reason to have a wear command on both $user and $wearable since the $user one requires that the object be a child of $wearable? Thanks! Khepri From coldstuff@cold.org Tue Nov 12 21:56:45 2002 From: coldstuff@cold.org (Roy Sutton) Date: Tue, 12 Nov 2002 15:56:45 -0600 (CST) Subject: [Coldstuff] Missing commands in Cold Core Message-ID: Couple things I noticed in ColdCore: 1) The command "remove|shed " on $wearable is set to '.remove_cmd()' however the method is actually called '.shed_cmd()' 2) The command "@users' on $admin is set to '.user_breakdown_cmd()' However there is no such method. Also, I'm puzzling over the @scour command on $admin. I've not quite figured out what arguments make this happy and am not sure if it's worth the time to figure it out since I've so much else to do. Perhaps someone could give me an example or describe its purpose. Oh, and my big pet peeve: Throughout the help system and code comments the word "it's" [it is] is used in place of "its" [possessive of it] in perhaps a dozen places. An example from $foundation.configure: "...on it's command line." :) Roy (sorry for the formatting -- had to send from a shell account) From coldstuff@cold.org Sun Nov 17 14:28:14 2002 From: coldstuff@cold.org (Helen Lei) Date: Sun, 17 Nov 2002 09:28:14 -0500 (EST) Subject: [Coldstuff] Need your help. Message-ID: <20021117142814.53311.qmail@web11407.mail.yahoo.com> --0-2110873168-1037543294=:53129 Content-Type: text/plain; charset=us-ascii Hello, I am a new user . Could you tell me the architecture of the Cold software project? Thanks for your time. Best regards, Helen --------------------------------- Post your free ad now! Yahoo! Canada Personals --0-2110873168-1037543294=:53129 Content-Type: text/html; charset=us-ascii

Hello,

I am a new user . Could you tell me the architecture of the Cold software project?

Thanks for your time.

Best regards,

Helen



Post your free ad now! Yahoo! Canada Personals
--0-2110873168-1037543294=:53129-- From coldstuff@cold.org Sun Nov 17 15:25:00 2002 From: coldstuff@cold.org (Helen Lei) Date: Sun, 17 Nov 2002 10:25:00 -0500 (EST) Subject: [Coldstuff] Need your help. Message-ID: <20021117152500.25270.qmail@web11408.mail.yahoo.com> --0-157691479-1037546700=:24985 Content-Type: text/plain; charset=us-ascii Hello, I am a new user. Could you tell me the architecture of the Cold software project? Thanks for your time. Best regards,Helen --------------------------------- Post your free ad now! Yahoo! Canada Personals --0-157691479-1037546700=:24985 Content-Type: text/html; charset=us-ascii
Hello,
 
I am a new user. Could you tell me the architecture of the Cold software project?
 
Thanks for your time.
 
Best regards,
Helen



Post your free ad now! Yahoo! Canada Personals
--0-157691479-1037546700=:24985-- From coldstuff@cold.org Mon Nov 18 22:24:24 2002 From: coldstuff@cold.org (B. Jack) Date: Mon, 18 Nov 2002 14:24:24 -0800 Subject: [Coldstuff] Need your help. Message-ID: >Hello, I am a new user. Could you tell me the architecture of the Cold >software >project? Thanks for your time. Best regards,Helen There are probably three najor parts of the Cold system: 1. coldcc - standalone compiler 2. genesis - driver (think of it as a "MUD-OS kernel") 3. textdump - this is the core that runs everything that exists in your project First you need to install the genesis and coldcc programs from the sources available from the download page. What you do next depends on what you want to do: 1. You might just use the exisitng ColdCore software in which case once you download the core and run coldcc on it you're in business. Just follow the instructions that come with ColdCore for setting up the initial game environment (like making yourself an administrator) and away you go. There are also a few other cores you might wish to use (such as ColdHell). 2. Make your own core. This is what I did for Anime Mayhem. By far the most nontrivial option but the best one for making a custom world that fits to your exact specifications. You might try hacking and/or slashing an existing core to make it do what you want but if you have a lot of special feature nonexistant in the existing core the question becomes "where to hack? where to slash?" and can sometimes be harder than making a new core from scratch (becuase the ColdCore itself is badly documented). ===== Gau of the Veldt ===================================== "Draped in monster hides, eyes shining with intelligence. A youth surviving against all odds..." Anime Mayhem Virtual Roleplaying Environment http://www.anime-mayhem.brians-anime.com:8080/ MoonieCode (0.7.15) http://www.geocities.com/Tokyo/Towers/7933/mooniecode.txt SM:5+ F:sMo+[+]Ch D: O:d[--]s+o- P:a22:s54|-:eDGBr:hBr:y-[-]:r[-]| == gau_veldt@hotmail.com =================================== _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From coldstuff@cold.org Mon Nov 18 23:21:36 2002 From: coldstuff@cold.org (Adam Cormany) Date: Mon, 18 Nov 2002 15:21:36 -0800 (PST) Subject: [Coldstuff] Prompts and Queues In-Reply-To: <5.1.0.14.2.20021104123924.05adda00@mail.mindspring.com> Message-ID: <20021118232136.46503.qmail@web12804.mail.yahoo.com> Sorry for the delay. The flu got me. Anyways, here is what I did. I'm not sure what would be the best method of explaining what I did, so here are the steps. You're going to have to modify the stuff I say because I did 2 prompts, 1 normal prompt and 1 combat prompt and there are methods in here that you will not have. Sorry for the huge email. Hopefully I haven't miss anything. I did this 2ish years ago: 1) Create a variable on $body called 'prompt'. 2) Create a method called $body.get_prompt with: ----- return prompt || "Type HELP PROMPT"; ----- 3) Create a method called $body.set_prompt with: ----- arg value; prompt = value; ----- 4) Create a method called $body.prompt_cmd with: ----- arg cmd, cmdstr, value; if (!value) { if (!prompt) prompt = "Type HELP PROMPT "; return "You prompt string is: " + .get_prompt(); } else if (value == "off") { .set_prompt("> "); return "Prompt off."; } else { .set_prompt(value + " "); return "New prompt string set to: " + .get_prompt(); } ----- 5) Create a method called $body.show_prompt with: ----- var line; line = .prompt_mode() == 'combat ? .get_combat_prompt() : .get_prompt(); line = strsed(line, "\%h", tostr(.hit()), "gc"); line = strsed(line, "\%H", tostr(.hit_limit()), "gc"); line = strsed(line, "\%m", tostr(.mana()), "gc"); line = strsed(line, "\%M", tostr(.mana_limit()), "gc"); line = strsed(line, "\%v", tostr(.move()), "gc"); line = strsed(line, "\%V", tostr(.move_limit()), "gc"); line = strsed(line, "\%x", tostr(.xp()), "gc"); line = strsed(line, "\%g", tostr(.gold()), "gc"); line = strsed(line, "\%n", .get_name(), "gc"); line = strsed(line, "\%p", (.get_cwd())[2], "gc"); line = strsed(line, "\%R", tostr(.location().rnum()), "gc"); line = strsed(line, "\%r", .location().full_fname(), "gc"); line = strsed(line, "\%t", $time.format("%I:%M %p"), "gc"); if (valid(.fighting())) line = strsed(line, "\%e", tostr(.fighting().hit()), "gc"); if (.is($builder)) line = strsed(line, "\%s", .active_editor() ? .active_editor().session_name() : "No Session", "gc"); .non_terminated_tell_color(.ansi_value(.prompt_mode() == 'combat ? "combat_prompt" : "prompt", line)); ----- Most of this code in this step will do nothing for you because it's mostly methods I've created to report stats of the player and also to display the text in color. You'll have to create your own case statement of things you want to show on your users prompts and you'll have to change the last line since you will not have any of its methods. 6) At the end of $user.parse_line, before: ----- catch any task_connections = task_connections.del(task_id()); return rval; ----- add the line: .show_prompt(); That should be it. Word of caution though. Be careful editing $user.parse_line. You mess something up in it and you wont be able to do much of anything since all your commands go through it. Just a prewarning:) I've had to restart Cold/Genesis many times because of messups in this method... I'm sure I've missed something and I'm sure there is a much better way to handle this, so if anyone has criticism of my code or questions or whatever, feel free to say it. I'm always looking for a better way to do things in Cold. Adam --- Roy Sutton wrote: > Adam, > > Yes, that's exactly what I was asking for. I'd love > to take a look at what > you did. > > As to the 2nd question it may be unclear what I was > asking. I think I have > a handle on where to look for the functionality I > need. > > Roy > > At 08:16 AM 11/4/2002, Adam Cormany wrote: > >If you mean on the prompt system, you want a prompt > >configurable to the user where they can show only > >their Hit Points, Moves, etc, yes, I've done this. > >I'll post if anyone is interested in it. > > > >--- Roy Sutton wrote: > > > Questions for you guru types: > > > > > > 1) I'd like to add a prompt system to Cold. > Has > > > someone already tackled this? > > > > > > 2) I'd like to be able to have certain commands > go > > > into a queue before > > > processing (to prevent concurrent commands which > > > should take a while to > > > execute in game time). Has someone tackled this > one > > > before? If not, some > > > thoughts on implementation details would be > > > appreciated. > > > > > > Roy > > > > > > _______________________________________________ > > > Cold-Coldstuff mailing list > > > Cold-Coldstuff@cold.org > > > > http://web.cold.org/mailman/listinfo/cold-coldstuff > > > > > >__________________________________________________ > >Do you Yahoo!? > >HotJobs - Search new jobs daily now > >http://hotjobs.yahoo.com/ > >_______________________________________________ > >Cold-Coldstuff mailing list > >Cold-Coldstuff@cold.org > >http://web.cold.org/mailman/listinfo/cold-coldstuff > > _______________________________________________ > Cold-Coldstuff mailing list > Cold-Coldstuff@cold.org > http://web.cold.org/mailman/listinfo/cold-coldstuff __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com From coldstuff@cold.org Tue Nov 19 07:30:57 2002 From: coldstuff@cold.org (klaus schilling) Date: Tue, 19 Nov 2002 08:30:57 +0100 Subject: [Coldstuff] Need your help. In-Reply-To: References: Message-ID: <15833.59569.438211.187632@localhost.localdomain> B. Jack writes: > > There are probably three najor parts of the Cold system: > 1. coldcc - standalone compiler is it possible to make cold's object DB work with a different language than coldc, like perl, scheme, python? Klaus Schilling From coldstuff@cold.org Tue Nov 26 00:28:22 2002 From: coldstuff@cold.org (B. Jack) Date: Mon, 25 Nov 2002 16:28:22 -0800 Subject: [Coldstuff] Need your help. Message-ID: >B. Jack writes: > > > > There are probably three najor parts of the Cold system: > > 1. coldcc - standalone compiler > >is it possible to make cold's object DB work with a different language >than coldc, like perl, scheme, python? The easiest way to do this is to make code a daemon object in the DB that can listen to a port and your perl, C, whatever code could talk to the DB by opening connections to the daemon. If the daemon was coded to grok SQL or some other standard query language you would be able to use the object system as if it were a database. The only other way to use Cold's objectbase is hack the DB handling code out of the driver and use it for C but then you'd probably have less frustration and hassle just installing MySQL or somesuch. ===== Gau of the Veldt ===================================== "Draped in monster hides, eyes shining with intelligence. A youth surviving against all odds..." Anime Mayhem Virtual Roleplaying Environment http://anime-mayhem.brians-anime.com:8080/ MoonieCode (0.7.15) http://www.geocities.com/Tokyo/Towers/7933/mooniecode.txt SM:5+ F:sMo+[+]Ch D: O:d[--]s+o- P:a22:s54|-:eDGBr:hBr:y-[-]:r[-]| == gau_veldt@hotmail.com =================================== _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From coldstuff@cold.org Tue Nov 26 08:05:34 2002 From: coldstuff@cold.org (klaus schilling) Date: Tue, 26 Nov 2002 09:05:34 +0100 Subject: [Coldstuff] Need your help. In-Reply-To: References: Message-ID: <15843.11086.14330.860975@localhost.localdomain> B. Jack writes: > > but then you'd probably have less frustration > and hassle just installing MySQL or somesuch. But MySql does not store function code, only number/string/array data. So one would have to store plain source code, and recompile and dynaload (for C) or at least eval and memoize/bytecompile (for perl, python, lisp) it each time the function is called. Klaus Schilling