Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Google

Members: 0
Guests: 21
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » What is a "script_prog"?
Forum Rules | Mark all | Recent Posts

What is a "script_prog"?
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 May 23, 2010, 6:11 pm
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

Does anybody know what this does? The function mprog_driver has an argument called "single_step" which Thoric has commented as being there for "script prog support". Only three invocations set the flag to true, namely <m|o|r>prog_script_trigger. None of the stock areas seem to have this kind of prog.

As near as I can tell it has something to do with running the mudprog one step at a time. But as far as I can tell, it shouldn't really work because it's not correctly maintaining various state information like the 'ifstate' variable.

I would like to deprecate it if it's unused and nobody knows what it's for, as it will simplify the code. Or if somebody can tell me what it's for, I can get a better feeling for how to support it in my rewrite. Does that sound ok with people?
       
Post is unread #2 May 23, 2010, 7:14 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Is that the one that calls on scripts in files or am I thinking of a different type?

If it's definite that it isn't being used and the code for it is broken, we may as well remove it. It's probably one of those things they started work on but never released.
       
Post is unread #3 May 23, 2010, 7:16 pm
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

Well, I know that one of they immortals on SW:TSW knows what they are and how to work with them, but he's currently unavailable due to RL issues so I can't ask him. I can look through his areas and see if there are any to look at as examples though. We could also poke Herne's guide and see what it says about the script_prog. I'll do both right now and get back to you.
       
Post is unread #4 May 23, 2010, 7:21 pm
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

Well, Herne's guide doesn't really say much, but it looks like script, time, and hour progs are all basically the same type of prog. As for what they do, not sure. I'm gonna go through that Imms areas in just a little bit, gotta help the wife with some stuff around the house first.
       
Post is unread #5 May 23, 2010, 7:28 pm
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

I also noticed that the script prog uses time_info.hour as a trigger component which I thought was pretty weird. Maybe you're right Samson and it's a work-in-progress, so it's normal that it doesn't make sense to us.

I don't know that I'd say it's broken, but I will say that I don't really know what it's for. Sometimes those are the same thing, sometimes they're not. :tongue:
       
Post is unread #6 May 23, 2010, 7:52 pm   Last edited May 23, 2010, 7:53 pm by Kayle
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

WEll, I had a look, and it looks like he didn't get a chance to add the progs he was talking about before RL interrupted and he had to take an extended leave from the MUD. According to Herne's guide, a script prog is supposed to trigger off of a provided hour and then loop one line at a time. Now, I'm not sure what this would mean, but we can test it on MW if you want David. I've also got an army of Builder's I can get to play with it on SW:TSW as well.
       
Post is unread #7 May 23, 2010, 8:08 pm
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

So, I was bored and decided to play with this:

<32450hp 30000m 30000mv> <#330>
Log: Kayle: aassign omni.are
Assigning you: Omni
Log: Assigning Omni to Kayle.

<32450hp 30000m 30000mv> <#330>
300) (P) mobile 'a mobile'
399) (P) last mob 'a newly created last mob'

<32450hp 30000m 30000mv> <#330>
Log: Kayle: mi 399
You invoke a newly created last mob (#399 - last mob - lvl 1)

<32450hp 30000m 30000mv> <#330>
It is 5 o'clock pm, Day of Datunda, 29th day in the Month of Kelona.
It is the season of spring, in the year 633.
The mud started up at : Sun May 23, 2010 9:41:59 PM Eastern US
The system time : Sun May 23, 2010 11:01:00 PM EDT
Your local time : Sun May 23, 2010 11:01:00 PM Eastern US

<32450hp 30000m 30000mv> <#330>
Build: Kayle: mpedit 399 add script 18
Begin entering your text now (/? = help /s = save /c = clear /l = list)
-----------------------------------------------------------------------
> > > > > >
Done.

<32450hp 30000m 30000mv> <#330>
Can't sleep... Newbies will eat me...

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 1.'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 2. (3)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 2. (3)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 3. (5)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 2. (3)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 3. (5)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 2. (3)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 3. (5)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 2. (3)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 3. (5)'

<32450hp 30000m 30000mv> <#330>
Saved...

<32450hp 30000m 30000mv> <#330>

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 2. (3)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 3. (5)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 2. (3)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 3. (5)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 2. (3)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 3. (5)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 2. (3)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 3. (5)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 2. (3)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 3. (5)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 2. (3)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 3. (5)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 2. (3)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 3. (5)'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 2. (3)'

<32450hp 30000m 30000mv> <#330> purge last
You make a newly created last mob disappear in a puff of smoke!

<32450hp 30000m 30000mv> <#330>
[Immortal] Katiara: http://icanhascheezburger.com/2010/03/06/funny-pictures-wife-tells-you-she/

<32450hp 30000m 30000mv> <#330>
Log: Kayle: mi 399
You invoke a newly created last mob (#399 - last mob - lvl 1)

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line 1.'

<32450hp 30000m 30000mv> <#330>
Name: last mob. Vnum: 399.
Short description: a newly created last mob.
Long description: Some god abandoned a newly created last mob here.
Hp: 9/9. Mana: 100/100. Move: 500/500.
Lv: 1. Align: 0. AC: 94. Gold: 0. Exp: 0.
>script_prog 18
say This is line 1.
mpsleep 10
say This is line 2. (3)
mpsleep 10
say This is line 3. (5)


So, it appears that either mpsleep ####s up script progs, or they just continuously fire off.and ignore the first line. But I think that it might be the mpsleep. I'll try something else and repost.
       
Post is unread #8 May 23, 2010, 8:17 pm
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

Thanks for taking a look. It's also quite possible that mpsleep and script progs are "competing" to do the same thing.

I still favor deprecation but that's mainly because I don't really understand what this is supposed to do and it seems that nobody really uses it. I guess if people don't pipe up in the next week or so, we can nix it? (If people actually need it and complain, we can figure out what they're trying to do and add it back in. The rewrite will make that kind of thing pretty easy, as long as we understand what we want.)
       
Post is unread #9 May 23, 2010, 8:17 pm
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

Attempt #2:

<32450hp 30000m 30000mv> <#330>
Log: Kayle: mi 399
You invoke a newly created last mob (#399 - last mob - lvl 2)

<32450hp 30000m 30000mv> <#330>
Build: Kayle: mpedit 399 delete 1
Program removed.

<32450hp 30000m 30000mv> <#330>
Build: Kayle: mpedit 399 add script 21
Begin entering your text now (/? = help /s = save /c = clear /l = list)
-----------------------------------------------------------------------
> > > > > > Done.

<32450hp 30000m 30000mv> <#330>
It is 8 o'clock pm, Day of Datunda, 29th day in the Month of Kelona.
It is the season of spring, in the year 633.
The mud started up at : Sun May 23, 2010 9:41:59 PM Eastern US
The system time : Sun May 23, 2010 11:13:42 PM EDT
Your local time : Sun May 23, 2010 11:13:42 PM Eastern US

<32450hp 30000m 30000mv> <#330>
Name: last mob. Vnum: 399.
Short description: a newly created last mob.
Long description: Some god abandoned a newly created last mob here.
Hp: 17/17. Mana: 100/100. Move: 500/500.
Lv: 2. Align: 0. AC: 88. Gold: 0. Exp: 0.
>script_prog 21
say This is line one. Next line: mpdonothing.
mpdonothing
say I've now completed mpdonothing. This is line three. One more mpdonothing.
mpdonothing
say Final mpdonothing completed. Program finished.

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line one. Next line: mpdonothing.'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'I've now completed mpdonothing. This is line three. One more mpdonothing.'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'Final mpdonothing completed. Program finished.'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line one. Next line: mpdonothing.'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'I've now completed mpdonothing. This is line three. One more mpdonothing.'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'Final mpdonothing completed. Program finished.'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'This is line one. Next line: mpdonothing.'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'I've now completed mpdonothing. This is line three. One more mpdonothing.'

<32450hp 30000m 30000mv> <#330>
A newly created last mob says, 'Final mpdonothing completed. Program finished.'


And it continues for what looks like the entire hour.
       
Pages:<< prev 1 next >>