Problem

» Siedler Map Source Forum » Siedler DEdK Script Forum » Problem

Seiten: 1

SH
#1
18.09.2018 16:55
Beiträge: 127

Problem

Hi!
I have a problem. I made that in a moment several walls (XD_WallStraight) have to be created. The walls are aligned, one next to the other, but it creates only every other wall. What can I do to create all the walls?

____________________
Sorry for my German

mcb
#2
18.09.2018 20:33
Beiträge: 1472

What exactly do you mean?
Mapeditor setting walls: I think you had to press (and hold) B to ignore the blocking during placement.
Mapeditor moving walls: Known bug, movement moves only half of the selection, fixed with tinyscript.
Script: No idea what could cause this, if it is a script, let me see it

SH
#3
19.09.2018 16:49
Beiträge: 127

I mean that in one moment (after pay a tribute) the walls must arise creating one, long wall, but in this wall has gaps - not all walls has been created. If you want, I can send you the map and you will able to see it.

____________________
Sorry for my German

mcb
#4
19.09.2018 20:36
Beiträge: 1472

Just post the functon that creates the walls and i will look at it.

SH
#5
19.09.2018 21:16
Beiträge: 127

I used this:

function Wall()
local posgate = GetPosition("gate")
Logic.CreateEntity(Entities.XD_WallStraightGate_Closed, posgate.X, posgate.Y, 0, 8)
for i = 1,2 do 
local posdist = GetPosition("dist"..i)
Logic.CreateEntity(Entities.XD_WallDistorted, posdist.X, posdist.Y, 0, 8)
end
for i = 1,3 do 
local poscorner = GetPosition("corner"..i)
Logic.CreateEntity(Entities.XD_WallCorner, poscorner.X, poscorner.Y, 0, 8)
end
for i = 1,14 do 
local poswall = GetPosition("wall"..i)
Logic.CreateEntity(Entities.XD_WallStraight, poswall.X, poswall.Y, 0, 8)
end
end


I tried do it also with ReplaceEntity, but it worked the same.

____________________
Sorry for my German

mcb
#6
19.09.2018 21:23
Beiträge: 1472

Seems to be a problem with the placement of your scriptentities. The easiest way would probably be place these walls in the editor and name then, then use ReplaceEntity from the FMA to mark the positions and use ReplaceEntity again to let the walls reappear.

SH
#7
19.09.2018 21:34
Beiträge: 127

When I created the map, I did so, but then I added the scripts, named them and set the position exactly to the walls. Then I deleted the walls and there were only scripts, so I think the position is well defined (each script has position X and Y with end 00.00). I'll check your way yet.

____________________
Sorry for my German

SH
#8
19.09.2018 21:55
Beiträge: 127

I replaced the walls with palisades, which were created normally. If you can not find a way, the palisades can also be on the map

____________________
Sorry for my German

SH
#9
23.09.2018 20:52
Beiträge: 127

I find the way. I can use the models

____________________
Sorry for my German

Seiten: 1

SiteEngine v1.5.0 by nevermind, ©2005-2007
Design by SpiderFive (www.siedler-games.de) - English translation by juja

Impressum