Search

Search found 190 matches

by daryl
29 Oct 2019, 20:18
Forum: Lua Scripts
Topic: help about a gate
Replies: 12
Views: 414

Re: help about a gate

FLOZi wrote:
29 Oct 2019, 17:14
Is the intended orientation north/south opening or east/west?
east/west
by daryl
28 Oct 2019, 21:04
Forum: Lua Scripts
Topic: help about a gate
Replies: 12
Views: 414

Re: help about a gate

If the yard is "oo oo cc cc cc cc cc cc oo oo", it's either 1x20 No. Top to bottom left to right punctuated by spaces. "oo oo cc cc cc cc cc cc oo oo", is: 2 block, 2 block, 2 open, 2 open, 2 open, 2 open, 2 open, 2 open, 2 block, 2 block and yardmap of gate is correct: footprintx = 2, footprintz =...
by daryl
23 Oct 2019, 21:56
Forum: Lua Scripts
Topic: help about a gate
Replies: 12
Views: 414

Re: help about a gate

in .cob script you mean?
i have this code:

Code: Select all

OpenYard()
{
	set YARD_OPEN to 1;
	while( !get YARD_OPEN )
	{
		sleep 1500;
		set YARD_OPEN to 1;
	}

}

CloseYard()
{
	set YARD_OPEN to 0;
	while( get YARD_OPEN )
	{

		sleep 1500;
		set YARD_OPEN to 0;
	}

}
by daryl
23 Oct 2019, 18:46
Forum: Lua Scripts
Topic: help about a gate
Replies: 12
Views: 414

help about a gate

hello all,
i have a small problem about this gate : in unitdef yard map="oo oo cc cc cc cc cc cc oo oo" so you can see in the picture tha passing is open but units can't pass trought the gate.
Where i wrong?
by daryl
24 Jan 2019, 19:14
Forum: Lua Scripts
Topic: team won condition
Replies: 5
Views: 866

Re: team won condition

so i need simple gadget that write the winner player name, at end of game, in infolog.txt

for example;

"daryl won the battle"
"sprunk won the battle"
etc.
by daryl
23 Jan 2019, 10:50
Forum: Lua Scripts
Topic: team won condition
Replies: 5
Views: 866

Re: team won condition

I want a list of winning players only...i try as soon as possibile.
thx
by daryl
03 Jan 2019, 16:14
Forum: Lua Scripts
Topic: team won condition
Replies: 5
Views: 866

team won condition

Hello all , I need help about a widget: I want to write a file with a list of winner teams. At the moment I do a list of loser teams (it's more easy): function widget:TeamDied(TeamID) local GetPlayerInfo = Spring.GetPlayerInfo local Echo = Spring.Echo file = io.open ("rpt.wrm","a") local name = GetP...
by daryl
25 Feb 2018, 11:26
Forum: Lua Scripts
Topic: Zero-K Mission editor
Replies: 1
Views: 770

Zero-K Mission editor

hello, Can I get, via lua, the group name of a unit created via Zero-K mission editor? i would like implement my code com=Spring.CreateUnit("icucom",6900,0,11400,0,1) atlas= "get the group name setted in Zero-K mission editor" Spring.GiveOrderToUnit(atlas, CMD.LOAD_UNITS, { com }, {"shift"}) Spring....
by daryl
20 Dec 2017, 19:33
Forum: Map Creation
Topic: info about "Space map"
Replies: 9
Views: 1692

Re: info about "Space map"

This is merely something that i put together to check the possibilities of 3d models as terrain: https://youtu.be/OdQ2tVs3aTo Uses a gadget to spawn the units, and LUS to to alter terrain height according to the unit model. Also features a modified version of the "void" gadget found in Violet Rempa...
by daryl
21 Nov 2017, 01:07
Forum: Map Creation
Topic: info about "Space map"
Replies: 9
Views: 1692

info about "Space map"

hello all, I would like make a "space map" like "AstroTurf" and i did some test: http://www.warmachinesrts.com/altri_siti/question.png So I used voidWater = true, into mapinfo.lua it's ok but I see: 1) blast on invisible water surface: it's possible to shut off water? i would like don't see blasts o...
by daryl
31 Oct 2017, 15:34
Forum: Lua Scripts
Topic: Unit in area -> destroy units
Replies: 10
Views: 2046

Re: Unit in area -> destroy units

hi gajop, I know ZK mission editor and work well with my game (a BA variant). But the question is: can I publish missions for my game made with ZK Mission Editor in my website? is ZK mission editor open source? also is Zero K Mission Editor protected by copiright or other and I can publish only mis...
by daryl
31 Oct 2017, 13:39
Forum: Lua Scripts
Topic: Unit in area -> destroy units
Replies: 10
Views: 2046

Re: Unit in area -> destroy units

Why not use SpringBoard or ZK's Mission editor for this? Both are primarily designed for non coders. I demonstrate something similar to what you're trying to achieve in this video: https://www.youtube.com/watch?v=DBigX19uiYA hi gajop, I know ZK mission editor and work well with my game (a BA varian...
by daryl
31 Oct 2017, 09:16
Forum: Lua Scripts
Topic: Unit in area -> destroy units
Replies: 10
Views: 2046

Re: Unit in area -> destroy units

Overall, you cannot throw words in a file and expect it to work. Programming is very strict, a single mistyped character and nothing works. The computer won't guess what you want from vague indications. You must give precise instructions. Hi zwzsg, I know that... but I don't know LUA, I wrote here ...
by daryl
29 Oct 2017, 21:35
Forum: Lua Scripts
Topic: Unit in area -> destroy units
Replies: 10
Views: 2046

Re: Unit in area -> destroy units

Spring.GetUnitsInRectangle(0,0,0,0,0) is a rectangle from 0,0 to 0,0 -> it's a degenerate rectangle, all corners are the same point! Use an actual rectangle, one with a not null area, if you hope to catch units. Spring.GetUnitsInRectangle is a function that returns the units that are in the rectang...
by daryl
29 Oct 2017, 09:27
Forum: Lua Scripts
Topic: Unit in area -> destroy units
Replies: 10
Views: 2046

Unit in area -> destroy units

Hello, please can you help me with code? I'm trying to learning LUA. I would like to do this: - When an unit of Team 0 is in the rectangle, "U" unit will be destroy I wrote this code: function gadget:GetInfo() return { name = "test minimission", desc = "Minimission", author = "molixx", date = "Septe...
by daryl
15 Oct 2017, 21:23
Forum: Lua Scripts
Topic: RAI attack Neutral units
Replies: 5
Views: 1087

Re: RAI attack Neutral units

PicassoCT wrote:Features do not have lua scripts. Features can spawn other features on death.
Also feature performance compared to unit performance is bad. (Perma visibility and transparency).
I had no alternative because RAI attack neutral units (i mean GAIA Units)-
Thx for info!
by daryl
13 Oct 2017, 19:20
Forum: Lua Scripts
Topic: RAI attack Neutral units
Replies: 5
Views: 1087

Re: RAI attack Neutral units

What can be the problem? i guess its Spring.CreateUnit() vs Spring.CreateFeature() ?! the ai seems to not ignore gaia units, not sure if this a bug or feature. moved the thread to "Lua Scripts" as the people there can help better i guess. hello, because no answer to my problem i decided to make all...
by daryl
19 May 2017, 18:16
Forum: Map Creation
Topic: Change Light map value
Replies: 22
Views: 8812

Re: Change Light map value

Don't listen to forb. $ssmf_* are various SSMF textures, and they can be set with the code Kloot provided. If you plan to change them *per* unit, you probably want to use a Lua texture. Set it *once* and then do all changes to the Lua texture (this is how springboard implements SSMF editing). Unles...
by daryl
19 May 2017, 09:09
Forum: Map Creation
Topic: Change Light map value
Replies: 22
Views: 8812

Re: Change Light map value

sorry, i'm not a coder... - this code set the new emitting texture?: Spring.SetMapShadingTexture("$ssmf_emission", "newemissionTex.png") - the "newemissiontex.png" file must be saved at the same place of original "emissiontex.png"? I tried to use this code but emitting light don't change... please,...
by daryl
18 May 2017, 19:03
Forum: Lua Scripts
Topic: RAI attack Neutral units
Replies: 5
Views: 1087

RAI attack Neutral units

Hi all, when I start a singleplayer skirmish game all it's ok, after some minutes only units controlled by RAI AI start to attack neutral units. What can be the problem? units are created in the map by this script: function gadget:GetInfo() return { name = "unita_iniziali", desc = "Aggiunge unità al...

Go to advanced search