Login
User Name:

Password:



Register

Forgot your password?
AFKMud 2.2.3
Author: AFKMud Team
Submitted by: Samson
SWFOTEFUSS 1.5
Author: Various
Submitted by: Samson
SWRFUSS 1.4
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.4
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.3
Author: Various
Submitted by: Samson
Users Online
CommonCrawl, DotBot, Bing, AhrefsBot

Members: 0
Guests: 4
Stats
Files
Topics
Posts
Members
Newest Member
486
3,768
19,542
575
Zedethar

Today's Birthdays
There are no member birthdays today.
» SmaugMuds » Codebases » SWR FUSS » SWR Problems
Forum Rules | Mark all | Recent Posts

SWR Problems
< Newer Topic :: Older Topic >

Pages:<< prev 1, 2 next >>
Post is unread #1 Feb 12, 2010 1:24 am   
Go to the top of the page
Go to the bottom of the page

MagisterXero
Fledgling
GroupMembers
Posts44
JoinedFeb 12, 2010

 
Okay... First off, I'm practically a complete newbie at a lot of this MUD coding stuff. I know some basic C++, .net and vb coding, plus some other stuff but this is starting to make me go insane.

I'm currently using cygwin, for lack of knowledge of any other Windows-based compilers that are free, or really cheap.

I managed to get the compile to finally work, yippee? I connected locally to the mud successfully, but for some god awful reason, there is no movement commands? I can't seem to use the following common commands at ALL, they bring up a "HUH?" as if it doesn't exist...

who
look
score
east
north
west
south
etc etc etc etc etc

And EVERY single letter of the alphabet when typed in returns a different emote. Am I doing something wrong, or am I supposed to literally redo the code for ALL of the commands for movement and the who list etc?

Post is unread #2 Feb 12, 2010 1:35 am   
Go to the top of the page
Go to the bottom of the page

InfiniteAxis
Off the Edge of the Map
GroupAdministrators
Posts1,199
JoinedMar 21, 2006

 
Did you uncomment the Cygwin line in the Makefile?

Post is unread #3 Feb 12, 2010 3:08 am   
Go to the top of the page
Go to the bottom of the page

MagisterXero
Fledgling
GroupMembers
Posts44
JoinedFeb 12, 2010

 
Thats what it was. Thanks!

Post is unread #4 Feb 13, 2010 1:34 pm   
Go to the top of the page
Go to the bottom of the page

MagisterXero
Fledgling
GroupMembers
Posts44
JoinedFeb 12, 2010

 

Yay I'm back again.

Okay so I recently uploaded my source to a mud hosting server, and I have encountered two errors when attempting to do things.

The first error is when I'm trying to compile, and it says this : make

make -s swreality
o/imc.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[1]: *** [swreality] Error 1
make: *** [all] Error 2

The second error, when I try using precompiled code is this : ./startup &

../src/swreality: Command not found.

Any ideas on these?

Post is unread #5 Feb 13, 2010 1:48 pm   
Go to the top of the page
Go to the bottom of the page

Caius
Magician
GroupMembers
Posts132
JoinedJan 29, 2006

 
Are you trying to run code compiled with cygwin on a Linux machine or something? That "File format not recognized" error seems to suggest something like that. Do a 'make clean' and compile again.

Post is unread #6 Feb 13, 2010 1:50 pm   
Go to the top of the page
Go to the bottom of the page

Keirath
Magician
GroupMembers
Posts148
JoinedJan 24, 2008

 
Also important to note,you need to recomment the cygwin line in your Makefile.

Post is unread #7 Feb 13, 2010 3:12 pm   
Go to the top of the page
Go to the bottom of the page

MagisterXero
Fledgling
GroupMembers
Posts44
JoinedFeb 12, 2010

 

Okay, I was able to compile the code this time. But when I use ./startup & I get a permission denied error.

I added chmod +x startup

But how do I add it to the swrreality?

../src/swreality.exe: Permission denied.

Post is unread #8 Feb 13, 2010 3:24 pm   
Go to the top of the page
Go to the bottom of the page

Andril
Magician
GroupMembers
Posts147
JoinedJun 9, 2009

 
Shouldn't be an swrreality.exe. Should just be swrreality. To reiterate what Keirath said, make sure you comment out the cygwin line in the makefile.

Post is unread #9 Feb 19, 2010 7:00 pm   
Go to the top of the page
Go to the bottom of the page

MagisterXero
Fledgling
GroupMembers
Posts44
JoinedFeb 12, 2010

 
Got a question here and someone might have an answer.

I'm trying to create a mob program, a very LONG mob program.
As I'm entering the code line by line, suddenly after inputting about 50 some odd lines of the program,
the entire mud just crashes! Anyone have a solution for this one? Tracking down the bug is difficult.

Post is unread #10 Feb 19, 2010 7:11 pm   
Go to the top of the page
Go to the bottom of the page

InfiniteAxis
Off the Edge of the Map
GroupAdministrators
Posts1,199
JoinedMar 21, 2006

 
That's odd as hell...

I don't have a solution handy, but I'm more than willing to try and replicate and fix it if I can. Lot on my plate atm though so it might not be the speediest fix.

Post is unread #11 Feb 19, 2010 7:21 pm   
Go to the top of the page
Go to the bottom of the page

MagisterXero
Fledgling
GroupMembers
Posts44
JoinedFeb 12, 2010

 
Do you need the code to the prog I'm putting in, or are you going to try your own stuff at it?

Post is unread #12 Feb 19, 2010 8:07 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,903
JoinedJul 26, 2005

 
I'm bored atm and have a few so I'll download and see if I can't get it to crash on it and all. I'll let you know what I find.

Post is unread #13 Feb 19, 2010 8:20 pm   
Go to the top of the page
Go to the bottom of the page

MagisterXero
Fledgling
GroupMembers
Posts44
JoinedFeb 12, 2010

 
Cool, thanks guys :)

Post is unread #14 Feb 19, 2010 8:26 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,903
JoinedJul 26, 2005

 
Any chance you can put on here what program you are getting it to crash on? Just doing slight lines etc... of just junk data it went fine and closed and told me the buffer was full.

Post is unread #15 Feb 19, 2010 8:44 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,903
JoinedJul 26, 2005

 
Well ok looks like you can get it to crash eventually lol. I'll see what I can figure out on it.

Post is unread #16 Feb 19, 2010 9:23 pm   
Go to the top of the page
Go to the bottom of the page

MagisterXero
Fledgling
GroupMembers
Posts44
JoinedFeb 12, 2010

 
>hitprcnt_prog 100
if hitprcnt($i) < 91
if hitprcnt($i) > 89
say Hahahaha!
mpecho $I slashes at &C$n&z with a beam saber!
mpdamage $n 40000
endif
endif
if hitprcnt($i) < 81
if hitprcnt($i) > 79
say We'll see how well you can really do against me...
mpecho $I slowly disappears into the &ws&zhadows...
mpsleep 5
mpecho $I reappears quickly and attacks!
murder $r
endif
endif
if hitprcnt($i) < 71
if hitprcnt($i) > 69
say Hahahaha!
mpecho $I slashes at &C$n&z with a beam claw!
mpdamage $n 40000
endif
endif
if hitprcnt($i) < 61
if hitprcnt($i) > 59
say This is getting interesting!
mpecho $I slowly disappears into the &ws&zhadows...
mpsleep 5
mpecho $I reappears quickly and attacks!
murder $r
endif
endif
if hitprcnt($i) < 51
if hitprcnt($i) > 49
say Hahahaha!
mpecho $I fires a series of lasers at &C$n&z!
mpdamage $n 40000
endif
endif
if hitprcnt($i) < 41
if hitprcnt($i) > 39
say You're strong, but how long can you keep this up?
mpecho $I slowly disappears into the &ws&zhadows...
mpsleep 5
mpecho $I reappears quickly and attacks!
murder $r
endif
endif
if hitprcnt($i) < 31
if hitprcnt($i) > 29
say Hahahaha!
mpecho $I slams his fist into the ground.
mpecho Beams of Energy descend from above!
mpdamage $r 20000
mpdamage $r 20000
mpdamage $r 20000
endif
endif
if hitprcnt($i) < 21
if hitprcnt($i) > 19
say We'll see how well you can really do against me...
mpecho $I slowly disappears into the &ws&zhadows...
mpsleep 5
mpecho $I reappears quickly and attacks!
murder $r
endif
endif
if hitprcnt($i) < 11
if hitprcnt($i) > 9
say Hahahaha!
mpecho $I slams his fist into the ground.
mpecho Beams of Energy descend from above!
mpdamage $r 20000
mpdamage $r 20000
mpdamage $r 20000
endif
endif

Post is unread #17 Feb 19, 2010 9:32 pm   
Go to the top of the page
Go to the bottom of the page

Andril
Magician
GroupMembers
Posts147
JoinedJun 9, 2009

 
Why not just do multiple progs?

Post is unread #18 Feb 19, 2010 9:40 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,903
JoinedJul 26, 2005

 
Well there is an editor problem, still have to figure out the best way to handle it though.

For that program and any that will be longer then 49 lines I suggest you take and add the type of program etc... to the mobile how you want and maybe a replace me or something in the text save the area and manually add it to it in the area file save the area and reboot the mud. The editor is set to only handle 49 lines correctly, but someone at some point thought it was as simple as adding in a max_buf_lines and setting it to 60. Problem is it is only the editor that trys to handle that much even though most the stuff isn't set to handle that much so bad things happen.

You can edit once and add up to 60 lines of text (the 61st line will give you a buffer full message), then on line 50 it is adding in a 0 and saving and quitting the editing process. It keeps all that extra stuff in memory though etc... Then you go to edit it later and it only copies 49 lines over from the current one into the buffer so any changes will result in the loss of any extra data in the buffer your editing. (So like if you manually add it in the area file don't open it in the editor to edit it because you will loose data). When it hits the next buffer full message (Again when you enter the data for line 61). and it closes it out again sometimes it runs into the problem with the data not matching correctly.

The fastest and probably the best way to stop this issue is to change max_buf_lines in build.c to 49 instead of 60.

Post is unread #19 Feb 19, 2010 9:44 pm   
Go to the top of the page
Go to the bottom of the page

MagisterXero
Fledgling
GroupMembers
Posts44
JoinedFeb 12, 2010

 
Because for some reason unbeknown-st to me, Doing something like this:

>hitprcnt_prog 100
if hitprcnt($i) < 91
if hitprcnt($i) > 89
say Hahahaha!
mpecho $I slashes at &C$n&z with a beam saber!
mpdamage $n 40000
endif
endif

>hitprcnt_prog 80
if hitprcnt($i) < 81
if hitprcnt($i) > 79
say We'll see how well you can really do against me...
mpecho $I slowly disappears into the &ws&zhadows...
mpsleep 5
mpecho $I reappears quickly and attacks!
murder $r
endif
endif

>hitprcnt_prog 70
if hitprcnt($i) < 71
if hitprcnt($i) > 69
say Hahahaha!
mpecho $I slashes at &C$n&z with a beam claw!
mpdamage $n 40000
endif
endif

>hitprcnt_prog 60
if hitprcnt($i) < 61
if hitprcnt($i) > 59
say This is getting interesting!
mpecho $I slowly disappears into the &ws&zhadows...
mpsleep 5
mpecho $I reappears quickly and attacks!
murder $r
endif
endif

>hitprcnt_prog 50
if hitprcnt($i) < 51
if hitprcnt($i) > 49
say Hahahaha!
mpecho $I fires a series of lasers at &C$n&z!
mpdamage $n 40000
endif
endif

>hitprcnt_prog 40
if hitprcnt($i) < 41
if hitprcnt($i) > 39
say You're strong, but how long can you keep this up?
mpecho $I slowly disappears into the &ws&zhadows...
mpsleep 5
mpecho $I reappears quickly and attacks!
murder $r
endif
endif

>hitprcnt_prog 30
if hitprcnt($i) < 31
if hitprcnt($i) > 29
say Hahahaha!
mpecho $I slams his fist into the ground.
mpecho Beams of Energy descend from above!
mpdamage $r 20000
mpdamage $r 20000
mpdamage $r 20000
endif
endif

>hitprcnt_prog 20
if hitprcnt($i) < 21
if hitprcnt($i) > 19
say We'll see how well you can really do against me...
mpecho $I slowly disappears into the &ws&zhadows...
mpsleep 5
mpecho $I reappears quickly and attacks!
murder $r
endif
endif

>hitprcnt_prog 10
if hitprcnt($i) < 11
if hitprcnt($i) > 9
say Hahahaha!
mpecho $I slams his fist into the ground.
mpecho Beams of Energy descend from above!
mpdamage $r 20000
mpdamage $r 20000
mpdamage $r 20000
endif
endif


Results in only the first program running entered running, in other words, hitprcnt_prog 100.
I like to consider myself a pretty high knowledge builder, but that one has me stumped... So in order to compensate for that, I was deciding to put it all in one program.

Post is unread #20 Feb 19, 2010 9:47 pm   
Go to the top of the page
Go to the bottom of the page

MagisterXero
Fledgling
GroupMembers
Posts44
JoinedFeb 12, 2010

 
Thanks Remcon, I figured I'd have to manually add large programs like that... It's either that, or allow multiple hitprcnt programs to run, which is also another solution.

Pages:<< prev 1, 2 next >>