Welcome to the Builder Academy

Loved New OLC Craft System

More
22 Jun 2012 05:30 #175 by Vatiken
New OLC Craft System was created by Vatiken
I uploaded the ALPHA version on my new crafting system to the download section tonight. The code is completeISH, although there will be some bug-fixing, clean up and documentation to do before an official release. Feel free to download it, play with it, expand it, and try and blow it up.

Cheers,
Vatiken

Crafting Patch, Version 0.1 ALPHA VERSION:
Created by Vatiken, (Joseph Arnusch)
************@gmail.com
June 21st, 2012

:: Patch created using tbaMUD 3.63 r318 ::

Readme Version 1.0

Files:
1) README: This file
2) crafts.c: The crafts.c file
3) crafts.h: The crafts.h header file
4) crafts.patch: The patch file

Before you begin:

IMPORTANT IMPORTANT IMPORTANT IMPORTANT
1) This is the ALPHA VERSION, which means it will contain bugs, issues, and so
forth and so forth. The purpose of this release is for help in troubleshooting
before an official release. I'd advise backing up your MUD just in case if you
choose to progress with applying this patch.

2) I assume no responsibility for any damage this causes in your MUD, apply at your
own risk.

3) Feel free to use this in anyway you see fit.

What this does:

This patch adds a crafting system to your MUD. If you've previously used another
crafting system, you will most likely notice some similarities.

Features:
* Simple, Clean Interface using the 1,2,3 colour options for easy customization.
* Easy to expand upon.
* Duration based crafting, ie: Crafting X takes 6 seconds.
* Skill AND Blueprint based crafts.
* Customizable Display Messages for the character and the room.

Things to note:

1) This system uses linked lists, which means if you intend on having 10000 crafts,
you may want to look at another option.
2) There is no VNUM system for this crafting system, just a reference ID number.
3) You can use > show craft <name> to display info on a craft.
The information varies if the craft is a RECIPE(BLUEPRINT)/NON-RECIPE(NON-BLUEPRINT)
4) Typing "craft" will bring up the crafts list for your character, and colour code
which crafts you have the goods to create.

5) An OFFICIAL release will be coming in the near future, 99% of the additions/modifications
will be to crafts.c and crafts.h, so minimal work should be required to upgrade.

Installation:

1) As this is an ALPHA VERSION, there is only a hand-patch patch file, and the .c and .h. file.
Should be easy enough to figure out.

2) Feel free to send any bugs to me either through the tbamud.com forums, or
by email at joseph.arnusch@gmail.com.


tbaMUD developer/programmer

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

More
22 Jun 2012 07:01 #179 by Halenbane
Replied by Halenbane on topic Re: New OLC Craft System
First batch of errors. I'm looking into it now.

crafts.c: In function 'load_crafts':
crafts.c:133: warning: dereferencing type-punned pointer will break strict-aliasing rules
crafts.c: In function 'craftedit_setup_new':
crafts.c:632: error: 'struct oasis_olc_data' has no member named 'craft'
crafts.c:633: error: 'struct oasis_olc_data' has no member named 'craft'
crafts.c:635: error: 'struct oasis_olc_data' has no member named 'craft'
crafts.c:636: error: 'struct oasis_olc_data' has no member named 'craft'
crafts.c: In function 'craftedit_setup_existing':
crafts.c:648: error: 'struct oasis_olc_data' has no member named 'craft'
crafts.c:649: error: 'struct oasis_olc_data' has no member named 'craft'
crafts.c: In function 'do_oasis_craftedit':
crafts.c:704: error: 'struct oasis_olc_data' has no member named 'req'
crafts.c: In function 'craftedit_disp_req_flags':
crafts.c:755: error: 'struct oasis_olc_data' has no member named 'req'
crafts.c: In function 'craftedit_disp_craft_flags':
crafts.c:774: error: 'struct oasis_olc_data' has no member named 'craft'
crafts.c: In function 'craftedit_requirement_menu':
crafts.c:780: error: 'struct oasis_olc_data' has no member named 'craft'
crafts.c: In function 'craftedit_disp_menu':
crafts.c:802: error: 'struct oasis_olc_data' has no member named 'craft'
crafts.c: In function 'craftedit_parse':
crafts.c:921: error: 'struct oasis_olc_data' has no member named 'craft'
crafts.c:937: error: 'struct oasis_olc_data' has no member named 'craft'
crafts.c:938: error: 'struct oasis_olc_data' has no member named 'craft'
crafts.c:939: error: 'struct oasis_olc_data' has no member named 'craft'

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

More
22 Jun 2012 07:09 #180 by Halenbane
Replied by Halenbane on topic Re: New OLC Craft System
Seems like maybe there is an include missing in crafts.c? Not sure.

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

More
22 Jun 2012 13:47 #184 by Vatiken
Replied by Vatiken on topic Re: New OLC Craft System
Looks like you missed the part of the patch that adds craft & rec to oasis_olc_data.

tbaMUD developer/programmer

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

More
22 Jun 2012 16:10 #186 by Halenbane
Replied by Halenbane on topic Re: New OLC Craft System
Yeah forgot the structs in oasis.h

Still getting the one warning, but thats it.


crafts.c:134: warning: dereferencing type-punned pointer will break strict-aliasing rules

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

More
22 Jun 2012 16:16 #187 by Vatiken
Replied by Vatiken on topic Re: New OLC Craft System
Now that I think about it, that's probably because tbaMUD uses an unsigned short int for vnums while I use an int. It shouldn't cause an issue but I will fix it for the official release.

tbaMUD developer/programmer

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

Time to create page: 0.227 seconds