Dae Model Pieces Not Moveable

Dae Model Pieces Not Moveable

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10180
Joined: 24 Jan 2006, 21:12

Dae Model Pieces Not Moveable

Post by PicassoCT » 21 Jul 2019, 11:59

Hi,
for my game mosaic, i m having a civilian model with a protest sign. On this protest sign are letters- which allow for a dynamic composition of messages. With funny anti-player rhetorics.
Thats the theory...

Image

However- i can not move, turn or spin those letter pieces in any direction. I can however- turn the parentpiece (the protestsign).
I can show them, but i can not move them - although calls to moving functions are executed and - the software claims that the position has changed.

Code: Select all

function makeProtestSign(signSizeX, signSizeZ, sizeLetter, sentence)
index = 0
xIndexMax= signSizeX/sizeLetter
zIndexMax= signSizeZ/sizeLetter

alreadyUsedLetter ={}


for i=1, #sentence do
	letter = string.upper(string.sub(sentence, i, i))
	if letter == "!" then letter = "Exclam" end
	if letter == "?" then letter = "Quest" end
	if letter == "\n" then zIndex=  math.floor(index /zIndexMax); zIndex = zIndex +1; index = zIndex*xIndexMax; break;  end
	local pieceToMove 
		if TablesOfPiecesGroups[letter] then 
			if  not alreadyUsedLetter[letter] then 
				alreadyUsedLetter[letter]= 1; 
				pieceToMove = TablesOfPiecesGroups[letter][alreadyUsedLetter[letter]]		
			else
			alreadyUsedLetter[letter]= alreadyUsedLetter[letter] +  1; 
				if TablesOfPiecesGroups[letter][alreadyUsedLetter[letter]] then
					pieceToMove = TablesOfPiecesGroups[letter][alreadyUsedLetter[letter]]
				end
			end
		end
		
		if letter == " " then	
			index= index+1
		elseif pieceToMove ~= nil then
			--place and show letter
			Show(pieceToMove)

			xIndex= index % xIndexMax
			zIndex=  math.floor(index /zIndexMax)

			Move(pieceToMove,z_axis, zIndex* sizeLetter,0)
			Move(pieceToMove,x_axis, xIndex* sizeLetter,0)
			index= index+1
		end

	end
end
The model is here:
https://github.com/PicassoCT/MOSAIC/blo ... vilian.DAE

Anyone any advice?
Attachments
screen00016.jpg
(283.55 KiB) Not downloaded yet
1 x

User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10180
Joined: 24 Jan 2006, 21:12

Re: Dae Model Pieces Not Moveable

Post by PicassoCT » 21 Jul 2019, 14:53

Close this.
Im an Idiot.
Outer Loop did reset all Animation done.

Image
Attachments
screen00017.jpg
(211.33 KiB) Not downloaded yet
1 x

User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10180
Joined: 24 Jan 2006, 21:12

Re: Dae Model Pieces Not Moveable

Post by PicassoCT » 21 Jul 2019, 18:00

For the lulz.. always for the lulz

Image

In the long tardition of bitches wailing about things -
unwilling to put it in work to actually make a difference...
I present you this pro-testicles.
Attachments
screen00018.jpg
(453.12 KiB) Not downloaded yet
3 x

User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10180
Joined: 24 Jan 2006, 21:12

Re: Dae Model Pieces Not Moveable

Post by PicassoCT » 21 Jul 2019, 23:51

ANYONE any slogans he wants ingame?

Keep in mind these are around at pretty apocalyptic times..
0 x

Post Reply

Return to “Lua Scripts”