[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUDs
. -> [Folder]  General
. . -> [Subject]  Error Compiling Act_wiz.c, (fixed)

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Error Compiling Act_wiz.c, (fixed)
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1 2  

Posted by Dextermovies   (65 posts)  [Biography] bio
Date Thu 03 Dec 2009 01:24 PM (UTC)  quote  ]

Amended on Thu 03 Dec 2009 05:22 PM (UTC) by Dextermovies

Message
I added [60] to the int stats ... it now works :D thank you guys so much for your support :D
[Go to top] top

Posted by Dextermovies   (65 posts)  [Biography] bio
Date Thu 03 Dec 2009 06:49 AM (UTC)  quote  ]
Message
The original code base has not been released to the public, so I can not provide a link to it. How ever it will compile fine, I am just screwing some thing up in my code trying to make a dystopia 1.01 mud work in dystopia 2. And that is my modified code.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Thu 03 Dec 2009 03:43 AM (UTC)  quote  ]
Message
Is that the original codebase, or your modified version?

What I'm trying to get is the original codebase that you are working off of. I am a little surprised that somebody would release a codebase that simply won't compile, and not due to some obscure reason or due to a compiler upgrade; the error you're seeing is an extremely basic one. It's treating something as an array when it is not an array.

Basically, I'm trying to establish if this was a problem with the original codebase, or if it's something you changed. If it's something you changed, the next questions are: why? can you change it back?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Dextermovies   (65 posts)  [Biography] bio
Date Thu 03 Dec 2009 02:10 AM (UTC)  quote  ]

Amended on Thu 03 Dec 2009 02:11 AM (UTC) by Dextermovies

Message
Well I am basing this code off of tbw, I am making it into a dystopia 2 mud, I was going to add several commands to the db then release the source for the dystopia I had modified. Here is a link to my dystopia 2 code, do not once you fix this issue, savefdb and loadfdb both crash the server .. I Am not to sure why right now. http://www30.zippyshare.com/v/61185731/file.html
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Wed 02 Dec 2009 11:40 PM (UTC)  quote  ]
Message
Do you have a download link?

To fix this, you'd need to make stats an array, but figuring out why it's not an array in the first place is probably pretty important... basically, that code could never possibly work, so we might be trying to "fix" code that is simply wrong through and through.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Dextermovies   (65 posts)  [Biography] bio
Date Wed 02 Dec 2009 11:08 PM (UTC)  quote  ]
Message
I obtained it from Kayosuke.
So how might I go about fixing this code ?
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Wed 02 Dec 2009 10:19 PM (UTC)  quote  ]
Message
It's impossible that stats is just an int and yet used as an array. That code could never have possibly worked. Where did you get this source?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Dextermovies   (65 posts)  [Biography] bio
Date Wed 02 Dec 2009 10:04 PM (UTC)  quote  ]
Message
Found in dystopia.h That is not all of pc data.

struct pc_data
{
int            stats;
}

I did not find any thing else not related to other mud classes in the code for it.


AFF_UNI


#define IS_VAMPAFF(ch, sn)	(IS_SET((ch)->pcdata->stats[UNI_AFF], (sn)))

#define UNI_AFF		1 /* vampaff */



Nothing for the last one.


[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Wed 02 Dec 2009 08:22 PM (UTC)  quote  ]
Message
Can you show the declaration for ch->pcdata->stats? UNI_AFF and VAM_DISGUISED too.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Dextermovies   (65 posts)  [Biography] bio
Date Wed 02 Dec 2009 08:20 PM (UTC)  quote  ]
Message
Nope I am not missing an include
[Go to top] top

Posted by Dextermovies   (65 posts)  [Biography] bio
Date Wed 02 Dec 2009 02:39 AM (UTC)  quote  ]
Message
UNI_AFF is an AFF made after the orignal creator of TBW Unifex .... it is defined in dystopia.h

It was a diff file, soi I must be missing a include some where .., thanks
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Wed 02 Dec 2009 01:48 AM (UTC)  quote  ]
Message
It works in other places? Other files, or other functions?

If other files, sounds like you're missing an include somewhere or missing externs.

If another function in the same file, then I have no idea. That wouldn't make much sense.

What is UNI_AFF? Where is it declared?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Dextermovies   (65 posts)  [Biography] bio
Date Tue 01 Dec 2009 11:12 PM (UTC)  quote  ]
Message
Yes that removes an error.
I am un sure as it is not my code, I am redoing TBW ( The Beast Within )
And yes it does work other places.
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Tue 01 Dec 2009 05:40 PM (UTC)  quote  ]
Message
If you comment out REMOVE_BIT(ch->affected_by, AFF_POLYMORPH); does it remove one error?

Does a different AFF work instead of polymorph?

Does REMOVE_BIT(ch->affected_by, AFF_POLYMORPH); in a different code section work?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Dextermovies   (65 posts)  [Biography] bio
Date Tue 01 Dec 2009 05:17 PM (UTC)  quote  ]

Amended on Tue 01 Dec 2009 05:33 PM (UTC) by Dextermovies

Message
Yes it works in other places, After adding the x I now get This

act_wiz.c: In function ‘do_form’:
act_wiz.c:2018: error: subscripted value is neither array nor pointer
act_wiz.c:2024: warning: implicit declaration of function ‘stc’
act_wiz.c:2027: warning: implicit declaration of function ‘xREMOVE_BIT’
act_wiz.c:2028: error: subscripted value is neither array nor pointer
act_wiz.c:2031: warning: implicit declaration of function ‘set_pc_name’
act_wiz.c:2040: warning: implicit declaration of function ‘xSET_BIT’
act_wiz.c:2041: error: subscripted value is neither array nor pointer
act_wiz.c:2045: warning: implicit declaration of function ‘set_enter_room_text’
make: *** [obj/act_wiz.o] Error 1
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


5,426 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]