Welcome to the Builder Academy

Question Races and Assemblies

More
20 Jun 2012 06:40 #108 by Papaya Pete
I've been working a little bit with the latest tbaMUD codebase, and was trying to find a snippit for adding races. Does anyone have that one lying around?

Also, I noticed that in the help file for assemblies, etc. that it's mentioned that it was left out since it can be implemented via DG scripts, but I remember using the older code on a mud from long ago and it's going to work out easier for me to do that. Once that is working, that is. I've gotten an old .patch file for it but was wondering if anyone had an updated version.

Final note, have to say this as I'm posting the first time... I'm a newbie at coding and such, but it looks like everyone's really cleaned up stock Circlemud. :)

Please Log in or Create an account to join the conversation.

More
20 Jun 2012 10:27 #109 by Rumble
Replied by Rumble on topic Re: Races and Assemblies
Follow this thread from the old forums.
old.tbamud.com/forum/thread/1217

We could use an updated patch if anyone has done it lately. You'll need to take the posted code (same as the broken 363 link) and pull the races.c and races.h from the tbaraces-3.1.tar. If you have problems just ask.

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com
The following user(s) said Thank You: Papaya Pete

Please Log in or Create an account to join the conversation.

More
20 Jun 2012 11:51 #110 by Liko
Replied by Liko on topic Re: Races and Assemblies

Rumble wrote: Follow this thread from the old forums.
old.tbamud.com/forum/thread/1217

We could use an updated patch if anyone has done it lately. You'll need to take the posted code (same as the broken 363 link) and pull the races.c and races.h from the tbaraces-3.1.tar. If you have problems just ask.


I plan on adding races to my mud. Give me a few days and I will post the snippet for everyone :)

Randian(0.0.0)
Owner/Developer

Please Log in or Create an account to join the conversation.

More
20 Jun 2012 17:17 #113 by Papaya Pete
Great, thanks for pointing my compass! I took a look at that old link you provided and tried patching it in. It got to the interpreter.c file and had issues with this set of code:

write_to_output(d, "%s\r\nRace: ", race_menu);
STATE(d) = CON_QRACE;
break;

case CON_QRACE:
load_result = parse_race(*arg);
if (load_result == RACE_UNDEFINED) {
write_to_output(d, "\r\nThat's not a race.\r\nRace: ");
return;
} else
GET_RACE(d->character) = load_result;


This is the error it gives me when I attempt to make.

interpreter.c:1603:16: error: ‘CON_QRACE’ undeclared (first use in this function)

Any ideas on how to tackle this?

Please Log in or Create an account to join the conversation.

More
20 Jun 2012 17:29 #114 by Liko
Replied by Liko on topic Re: Races and Assemblies

Papaya Pete wrote: Great, thanks for pointing my compass! I took a look at that old link you provided and tried patching it in. It got to the interpreter.c file and had issues with this set of code:

write_to_output(d, "%s\r\nRace: ", race_menu);
STATE(d) = CON_QRACE;
break;

case CON_QRACE:
load_result = parse_race(*arg);
if (load_result == RACE_UNDEFINED) {
write_to_output(d, "\r\nThat's not a race.\r\nRace: ");
return;
} else
GET_RACE(d->character) = load_result;


This is the error it gives me when I attempt to make.

interpreter.c:1603:16: error: ‘CON_QRACE’ undeclared (first use in this function)

Any ideas on how to tackle this?


I'm getting ready to post the races patch right now :)

Randian(0.0.0)
Owner/Developer
The following user(s) said Thank You: Papaya Pete

Please Log in or Create an account to join the conversation.

More
20 Jun 2012 17:55 #115 by Halenbane
Replied by Halenbane on topic Re: Races and Assemblies
CON_QRACE is defined in structs.h

#define CON_TRIGEDIT 26 /**< OLC mode - trigger edit */
#define CON_HEDIT 27 /**< OLC mode - help edit */
#define CON_QEDIT 28 /**< OLC mode - quest edit */
+#define CON_QRACE 29 /**< Choose Character Race */
The following user(s) said Thank You: Papaya Pete

Please Log in or Create an account to join the conversation.

Time to create page: 0.208 seconds