[SOLVED]Thing_Move issue

Discuss all aspects related to modding Zandronum here.
User avatar
agaures
Forum Regular
Posts: 591
Joined: Mon Dec 10, 2012 6:34 am
Location: New Zealand

[SOLVED]Thing_Move issue

#1

Post by agaures » Sun Nov 17, 2013 6:18 am

So i am trying to move all players to specific teleport destinations based on their tid. Thing is, they aren't teleporting.

The code.

Now before you go on and ramble about the obvious stuff, yes, i have teleport destinations with the tags 7000, 7001, 7002 etc. Also, it's a global acs script.
Last edited by agaures on Sun Nov 17, 2013 9:27 am, edited 1 time in total.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything

Mr.Man
Forum Regular
Posts: 657
Joined: Thu May 09, 2013 7:25 pm

RE: Thing_Move issue

#2

Post by Mr.Man » Sun Nov 17, 2013 6:40 am

I never did this, but if im right, you need to use teleport_other.

User avatar
agaures
Forum Regular
Posts: 591
Joined: Mon Dec 10, 2012 6:34 am
Location: New Zealand

RE: Thing_Move issue

#3

Post by agaures » Sun Nov 17, 2013 6:57 am

I have already tried teleport_other, same result.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything

User avatar
IdeIdoom
Zandrone
Posts: 1112
Joined: Mon Jun 04, 2012 6:19 am
Location: Meldola, Italy
Contact:

RE: Thing_Move issue

#4

Post by IdeIdoom » Sun Nov 17, 2013 7:45 am

Try Teleport(random(min,max), 0, 0) the min and max will be the lowest and the highest TID's of the Teleport destinations you want to teleport them.
THE ROMANIAN POWERImage

Code: Select all

<+Dastan>	edd
<+Dastan>	boxxy skin when
<+Shift>	dastan you really want to fap at it this much and now you are going crazy and shredding your hair into a million tiny pieces for this boxxy skin to come out that way you can cum out
<+Dastan>	Shift, yes
--------------------------------------------------------------------
21:53:26  <@Estar>	well, if i'd be a girl, i would say ideidoom has ok looks

User avatar
agaures
Forum Regular
Posts: 591
Joined: Mon Dec 10, 2012 6:34 am
Location: New Zealand

RE: Thing_Move issue

#5

Post by agaures » Sun Nov 17, 2013 7:50 am

IdeIdoom wrote: Try Teleport(random(min,max), 0, 0) the min and max will be the lowest and the highest TID's of the Teleport destinations you want to teleport them.
Teleport, teleports the activator. In this case, there are no activators. But i could use the random thing for thing_move.

Edit:

Nevermind, that would only move one player.
Last edited by agaures on Sun Nov 17, 2013 7:53 am, edited 1 time in total.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything

Mr.Man
Forum Regular
Posts: 657
Joined: Thu May 09, 2013 7:25 pm

RE: Thing_Move issue

#6

Post by Mr.Man » Sun Nov 17, 2013 7:54 am

Look up that samsara port level. it had teleport_other too i think, but with a timer.
This timer kept restarting the script untill all 32 player id's came by, thats how it teleported them to the boat and land.

or you could kill everybody and change their spawn to wherever you want them :#
Last edited by Mr.Man on Sun Nov 17, 2013 7:54 am, edited 1 time in total.

User avatar
agaures
Forum Regular
Posts: 591
Joined: Mon Dec 10, 2012 6:34 am
Location: New Zealand

RE: Thing_Move issue

#7

Post by agaures » Sun Nov 17, 2013 8:01 am

I could use a loop:

Code: Select all

script 1 (void)
{
    int x = 0;
    until(x == playercount())
    {
        teleportother(random(1000, 1063), 7000+playernumber(), 1);
        delay(1);
        x++;
    }
}
Edit:

Didn't work.

Edit2:

I added a '!' before the 'x == playercount()' and then it never stopped teleporting.
Last edited by agaures on Sun Nov 17, 2013 8:14 am, edited 1 time in total.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything

User avatar
IdeIdoom
Zandrone
Posts: 1112
Joined: Mon Jun 04, 2012 6:19 am
Location: Meldola, Italy
Contact:

RE: Thing_Move issue

#8

Post by IdeIdoom » Sun Nov 17, 2013 8:16 am

I don't think it's void. Try Enter/Open and make it just teleport and see if it works.

EDIT: Wait a minute, you have sector tags over 7000?
Last edited by IdeIdoom on Sun Nov 17, 2013 8:17 am, edited 1 time in total.
THE ROMANIAN POWERImage

Code: Select all

<+Dastan>	edd
<+Dastan>	boxxy skin when
<+Shift>	dastan you really want to fap at it this much and now you are going crazy and shredding your hair into a million tiny pieces for this boxxy skin to come out that way you can cum out
<+Dastan>	Shift, yes
--------------------------------------------------------------------
21:53:26  <@Estar>	well, if i'd be a girl, i would say ideidoom has ok looks

Mr.Man
Forum Regular
Posts: 657
Joined: Thu May 09, 2013 7:25 pm

RE: Thing_Move issue

#9

Post by Mr.Man » Sun Nov 17, 2013 8:20 am

Why not over 9000?

You should add a counter, like (teleported++) if you know what i mean
And if (teleported==32) terminate;

You know what i mean?

User avatar
agaures
Forum Regular
Posts: 591
Joined: Mon Dec 10, 2012 6:34 am
Location: New Zealand

RE: Thing_Move issue

#10

Post by agaures » Sun Nov 17, 2013 8:24 am

IdeIdoom wrote: EDIT: Wait a minute, you have sector tags over 7000?
agaures wrote:yes, i have teleport destinations with the tags 7000, 7001, 7002 etc.
@Mr.Man: I will try that.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything

User avatar
IdeIdoom
Zandrone
Posts: 1112
Joined: Mon Jun 04, 2012 6:19 am
Location: Meldola, Italy
Contact:

RE: Thing_Move issue

#11

Post by IdeIdoom » Sun Nov 17, 2013 8:28 am

Teleport destinations? Teleport destinations use TIDs not Tags. Sectors use tags. If you already defined the teleport destinations things with TIDs, you don't need sector tags.
THE ROMANIAN POWERImage

Code: Select all

<+Dastan>	edd
<+Dastan>	boxxy skin when
<+Shift>	dastan you really want to fap at it this much and now you are going crazy and shredding your hair into a million tiny pieces for this boxxy skin to come out that way you can cum out
<+Dastan>	Shift, yes
--------------------------------------------------------------------
21:53:26  <@Estar>	well, if i'd be a girl, i would say ideidoom has ok looks

User avatar
agaures
Forum Regular
Posts: 591
Joined: Mon Dec 10, 2012 6:34 am
Location: New Zealand

RE: Thing_Move issue

#12

Post by agaures » Sun Nov 17, 2013 8:30 am

IdeIdoom wrote: Teleport destinations? Teleport destinations use TIDs not Tags. Sectors use tags. If you already defined the teleport destinations things with TIDs, you don't need sector tags.
TIDs, Tags, same thing. Also, i never used a sector tag.

Edit:

Mr.Man, turns out i don't know what you mean.
Last edited by agaures on Sun Nov 17, 2013 8:33 am, edited 1 time in total.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything

User avatar
IdeIdoom
Zandrone
Posts: 1112
Joined: Mon Jun 04, 2012 6:19 am
Location: Meldola, Italy
Contact:

RE: Thing_Move issue

#13

Post by IdeIdoom » Sun Nov 17, 2013 8:37 am

Code: Select all

script 1 (void)
{
    int x = teleported;
    until(x == 64)
    {
        teleportother(random(1000, 1063), 7000+playernumber(), 1);
        delay(1);
        x++;
    }
}
Probably what he meant.
THE ROMANIAN POWERImage

Code: Select all

<+Dastan>	edd
<+Dastan>	boxxy skin when
<+Shift>	dastan you really want to fap at it this much and now you are going crazy and shredding your hair into a million tiny pieces for this boxxy skin to come out that way you can cum out
<+Dastan>	Shift, yes
--------------------------------------------------------------------
21:53:26  <@Estar>	well, if i'd be a girl, i would say ideidoom has ok looks

User avatar
agaures
Forum Regular
Posts: 591
Joined: Mon Dec 10, 2012 6:34 am
Location: New Zealand

RE: Thing_Move issue

#14

Post by agaures » Sun Nov 17, 2013 8:38 am

IdeIdoom wrote:

Code: Select all

script 1 (void)
{
    int x = teleported;
    until(x == 64)
    {
        teleportother(random(1000, 1063), 7000+playernumber(), 1);
        delay(1);
        x++;
    }
}
Probably what he meant.
I was thinking what he was trying to imply was quite like my code... which doesn't work.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything

User avatar
Vincent(PDP)
Forum Regular
Posts: 527
Joined: Thu Mar 14, 2013 7:35 pm
Location: Sweden
Clan: My DOOM site
Clan Tag: <MDS>
Contact:

RE: Thing_Move issue

#15

Post by Vincent(PDP) » Sun Nov 17, 2013 8:53 am

agaures wrote:
IdeIdoom wrote:

Code: Select all

script 1 (void)
{
    int x = teleported;
    until(x == 64)
    {
        teleportother(random(1000,1063), 7000+playernumber(), 1);
        delay(1);
        x++;
    }
}
Probably what he meant.
I was thinking what he was trying to imply was quite like my code... which doesn't work.
This should work:

Code: Select all

Script 1 ENTER
{
Delay(1);
 If(GameStarted == True) //Or what you want to call it
 {
   Teleport(7000+PlayerNumber(), 0, 1);
   Terminate;
 }
Restart;
}
Last edited by Vincent(PDP) on Sun Nov 17, 2013 9:03 am, edited 1 time in total.
//Visual Vincent ( Vincent (PDP) )
- My DOOM site Team

My projects:
Spoiler: (Open)
Doom Writer
Escape From The Laboratory - Done
Escape From The Laboratory Part 2
Parkskolan Zombie Horde Map (ZM10) - Done
In game Admin Commands for Zandronum.
Achievement Mod for Zandronum
Stats mod

User avatar
IdeIdoom
Zandrone
Posts: 1112
Joined: Mon Jun 04, 2012 6:19 am
Location: Meldola, Italy
Contact:

RE: Thing_Move issue

#16

Post by IdeIdoom » Sun Nov 17, 2013 8:55 am

Actually, replace 1000+PlayerNumber() with 7000+PlayerNumber()
THE ROMANIAN POWERImage

Code: Select all

<+Dastan>	edd
<+Dastan>	boxxy skin when
<+Shift>	dastan you really want to fap at it this much and now you are going crazy and shredding your hair into a million tiny pieces for this boxxy skin to come out that way you can cum out
<+Dastan>	Shift, yes
--------------------------------------------------------------------
21:53:26  <@Estar>	well, if i'd be a girl, i would say ideidoom has ok looks

User avatar
Vincent(PDP)
Forum Regular
Posts: 527
Joined: Thu Mar 14, 2013 7:35 pm
Location: Sweden
Clan: My DOOM site
Clan Tag: <MDS>
Contact:

RE: Thing_Move issue

#17

Post by Vincent(PDP) » Sun Nov 17, 2013 8:57 am

IdeIdoom wrote: Actually, replace 1000+PlayerNumber() with 7000+PlayerNumber()
No, because the teleport destinations had tid 1000-1063.
//Visual Vincent ( Vincent (PDP) )
- My DOOM site Team

My projects:
Spoiler: (Open)
Doom Writer
Escape From The Laboratory - Done
Escape From The Laboratory Part 2
Parkskolan Zombie Horde Map (ZM10) - Done
In game Admin Commands for Zandronum.
Achievement Mod for Zandronum
Stats mod

User avatar
agaures
Forum Regular
Posts: 591
Joined: Mon Dec 10, 2012 6:34 am
Location: New Zealand

RE: Thing_Move issue

#18

Post by agaures » Sun Nov 17, 2013 8:57 am

Funny, i was building on a similar code just now.

Replacement for script 999:

Code: Select all

script 999 enter //Give all players unique tid
{
	Thing_ChangeTID(0, 1000+PlayerNumber());
	SetActorProperty(1000+PlayerNumber(), APROP_HEALTH, 100);
	ACS_Execute(995, 0, 0, 0, 0);
}
script 995

Code: Select all

script 995 (void)
{
	if(countdown == true)
	{
		Thing_Move(1000+PlayerNumber(), 7000+PlayerNumber(), 0);
		terminate;
	}
	Delay(1);
	Restart;
}
Edit:
Vincent(PDP) wrote:
IdeIdoom wrote: Actually, replace 1000+PlayerNumber() with 7000+PlayerNumber()
No, because the teleport destinations had tid 1000-1063.
Also, sorry. IdeIdoom is right, the teleport destinations had the tids 7000-7063.
Vincent(PDP) wrote: Ok why did he write random(1000,1063) then :S
Because the first argument in TeleportOther is the TID of the thing to teleport.
Last edited by agaures on Sun Nov 17, 2013 9:04 am, edited 1 time in total.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything

User avatar
Vincent(PDP)
Forum Regular
Posts: 527
Joined: Thu Mar 14, 2013 7:35 pm
Location: Sweden
Clan: My DOOM site
Clan Tag: <MDS>
Contact:

RE: Thing_Move issue

#19

Post by Vincent(PDP) » Sun Nov 17, 2013 9:05 am

Ok your script will probably not work, because no player has activated the script, so the PlayerNumber will only be 0 all the time
//Visual Vincent ( Vincent (PDP) )
- My DOOM site Team

My projects:
Spoiler: (Open)
Doom Writer
Escape From The Laboratory - Done
Escape From The Laboratory Part 2
Parkskolan Zombie Horde Map (ZM10) - Done
In game Admin Commands for Zandronum.
Achievement Mod for Zandronum
Stats mod

User avatar
IdeIdoom
Zandrone
Posts: 1112
Joined: Mon Jun 04, 2012 6:19 am
Location: Meldola, Italy
Contact:

RE: Thing_Move issue

#20

Post by IdeIdoom » Sun Nov 17, 2013 9:06 am

Watch the both codes, mate. First script has ENTER and it executes the teleporting script.
THE ROMANIAN POWERImage

Code: Select all

<+Dastan>	edd
<+Dastan>	boxxy skin when
<+Shift>	dastan you really want to fap at it this much and now you are going crazy and shredding your hair into a million tiny pieces for this boxxy skin to come out that way you can cum out
<+Dastan>	Shift, yes
--------------------------------------------------------------------
21:53:26  <@Estar>	well, if i'd be a girl, i would say ideidoom has ok looks

Post Reply