Some questions about building mod

Talk about editing and creation of Vavoom mods

Postby Crimson Wizard » 07 Oct 2006 12:30

Is it possible to make an Action Special which returns some result to map script?
Crimson Wizard
 
Posts: 881
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Postby Crimson Wizard » 07 Oct 2006 13:28

It seems that now we cannot make Action Special ID > 255 at all. Why?
Crimson Wizard
 
Posts: 881
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Postby Janis Legzdinsh » 08 Oct 2006 10:44

Crimson Wizard wrote:Is it possible to make an Action Special which returns some result to map script?

Only boolean value can be returned.

It seems that now we cannot make Action Special ID > 255 at all. Why?

I guess it's because you are using extended version of acc which by default uses byte instructions in which case line specials are encoded as bytes and are limited to 255. By passing -h option it will use integer instructions.
User avatar
Janis Legzdinsh
Site Admin
 
Posts: 1952
Joined: 13 Jan 2002 08:30
Location: Limassol, Cyprus

Postby Crimson Wizard » 08 Oct 2006 14:36

Janis Legzdinsh wrote:
Crimson Wizard wrote:Is it possible to make an Action Special which returns some result to map script?

Only boolean value can be returned.


And how it can be done? Unfortunately I used ACS too long ago last time to remember much about it.
Crimson Wizard
 
Posts: 881
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Postby Janis Legzdinsh » 09 Oct 2006 17:58

Just check the return value of a line special.
User avatar
Janis Legzdinsh
Site Admin
 
Posts: 1952
Joined: 13 Jan 2002 08:30
Location: Limassol, Cyprus

Postby Crimson Wizard » 14 Oct 2006 12:13

Janis Legzdinsh wrote:
It seems that now we cannot make Action Special ID > 255 at all. Why?

I guess it's because you are using extended version of acc which by default uses byte instructions in which case line specials are encoded as bytes and are limited to 255. By passing -h option it will use integer instructions.

I tried but it doesn't seem to work. I checked acc debug info and saw it still substs wrong action special ids, for example '4' instead of '260'.
Crimson Wizard
 
Posts: 881
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Postby Janis Legzdinsh » 15 Oct 2006 07:38

I just checked compiler and found out that it internaly stores action specials as bytes, so you are limited to 255 action specials.
User avatar
Janis Legzdinsh
Site Admin
 
Posts: 1952
Joined: 13 Jan 2002 08:30
Location: Limassol, Cyprus

Postby Crimson Wizard » 15 Oct 2006 11:50

Uh, too bad. Still we may use original Raven's acc.exe, but modern has many additional features that are too good to be rejected.
Is ACC released as open source? Maybe it can be modified somehow?
Crimson Wizard
 
Posts: 881
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Postby Janis Legzdinsh » 17 Oct 2006 17:51

Of course it is open source, you can get the source from ZDoom's website or from Vavoom source tree (but it's an older version).
User avatar
Janis Legzdinsh
Site Admin
 
Posts: 1952
Joined: 13 Jan 2002 08:30
Location: Limassol, Cyprus

Postby Crimson Wizard » 12 Nov 2006 16:34

Assuming we have some actor spawned somewhere. How I may check whether he has / has not walls (solid lines (?)) in vicinity of his body radius (i.e. is he got stuck)?
Seems TryMove does not help much in this case.
Crimson Wizard
 
Posts: 881
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Postby Firebrand » 12 Nov 2006 17:01

I know why you are asking this ;), I've been looking for a solution to it to, but I'm stuck, supposedly, you should check if thing will fit the desired position (with it's radius), if it won't fit you shouldn't spawn it, I think the problem could be related to that, hope this helps you out :).
User avatar
Firebrand
 
Posts: 1000
Joined: 11 Feb 2004 08:12
Location: Mexico

Postby Crimson Wizard » 13 Nov 2006 07:18

Oops, nevermind.
Again, I forgot about TestLocation function.
Crimson Wizard
 
Posts: 881
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Previous

Return to Editing

Who is online

Users browsing this forum: No registered users and 0 guests

cron