Search

Search found 195 matches

by daryl
15 Oct 2017, 21:23
Forum: Lua Scripts
Topic: RAI attack Neutral units
Replies: 5
Views: 2061

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: 2061

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 t...
by daryl
19 May 2017, 18:16
Forum: Map Creation
Topic: Change Light map value
Replies: 22
Views: 20082

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: 20082

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 bu...
by daryl
18 May 2017, 19:03
Forum: Lua Scripts
Topic: RAI attack Neutral units
Replies: 5
Views: 2061

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 = "Ag...
by daryl
03 Jan 2017, 14:17
Forum: Lua Scripts
Topic: Idle builders
Replies: 5
Views: 2117

Re: Idle builders

This/my version has stripped the old plain icon display option. (newer version of this widget is included in BA btw, its disabled by default) Since new Spring engine version it sometimes renders the models in plain color depending of where you are in the map. I've tried to fix that, but without suc...
by daryl
02 Jan 2017, 01:01
Forum: Lua Scripts
Topic: Idle builders
Replies: 5
Views: 2117

Re: Idle builders

I edited the "idle builders" widget. - animated icon perspective - performance increased 3x - icon size dependent on screen resolution - icon hover/click: animated size and now has rounded corners too - fixed buggy unit highlight on hover - added guishader effect on hover/click - hides wh...
by daryl
12 Dec 2016, 13:38
Forum: Map Creation
Topic: Change Light map value
Replies: 22
Views: 20082

Re: Change Light map value

if (gl.Texture("emissionTexture.png")) then Spring.SetMapShadingTexture("$ssmf_emission", "emissionTexture.png") end sorry, i'm not a coder... - this code set the new emitting texture?: Spring.SetMapShadingTexture("$ssmf_emission", "newemissionTex.png&qu...
by daryl
30 Nov 2016, 22:22
Forum: Map Creation
Topic: Change Light map value
Replies: 22
Views: 20082

Re: Change Light map value

Thx to all for informations! if (gl.Texture("emissionTexture.png")) then Spring.SetMapShadingTexture("$ssmf_emission", "emissionTexture.png") end Hi kloot, i tried but probably i wrong something: where i need to save .png file? I used this code only for test: function g...
by daryl
27 Nov 2016, 12:40
Forum: Lua Scripts
Topic: shut off shadow of specific unit
Replies: 6
Views: 3417

shut off shadow of specific unit

Hi all,
as object, there is a command that hide the shadow of a specific unit?

I need to do some 3d arrows indicating the objectives in a mission... but I would like hide their shadows...
is this possible??
by daryl
26 Nov 2016, 12:46
Forum: Lua Scripts
Topic: Create units from external file list
Replies: 7
Views: 3431

Re: Create units from external file list

I interpreted "external" as "not in the game archive". Because as his first example indicate daryl already knows how to create units from a lua file inside the game archive. yes, as solution 1 Daryl: It might work, but no, it's not a good solution. The good solution is to use Sp...
by daryl
25 Nov 2016, 09:30
Forum: Lua Scripts
Topic: Create units from external file list
Replies: 7
Views: 3431

Re: Create units from external file list

ok..Unit creation is a synced operation and.. what appen if I change this LUA code in all the computers in online game before playing? for example I can edit directly this code: function gadget:GetInfo() return { name = "unita_iniziali", desc = "Aggiunge unità all'inizio del gioco.&qu...
by daryl
24 Nov 2016, 13:56
Forum: Lua Scripts
Topic: Create units from external file list
Replies: 7
Views: 3431

Create units from external file list

Hi all, can you help me please about this question: i would like a script that create units from an external file list: For example, I have this code: function gadget:GetInfo() return { name = "unita_iniziali", desc = "Aggiunge unità all'inizio del gioco.", author = " thx to...
by daryl
23 Nov 2016, 01:17
Forum: Map Creation
Topic: Change Light map value
Replies: 22
Views: 20082

Re: Change Light map value

Sorry for late reply. Have a look at this https://springrts.com/phpbb/viewtopic.php?f=13&t=35373 , i think it should be self explaining pretty much. I hope this will help you. Could you please post more information on what visual you would like to achieve? Its not apparent to me from your post....
by daryl
16 Nov 2016, 08:38
Forum: Map Creation
Topic: Change Light map value
Replies: 22
Views: 20082

Re: Change Light map value

Could you please post more information on what visual you would like to achieve? Its not apparent to me from your post.. Sorry for late reply. Have a look at this https://springrts.com/phpbb/viewtopic.php?f=13&t=35373 , i think it should be self explaining pretty much. I hope this will help you...
by daryl
30 Oct 2016, 22:04
Forum: Map Creation
Topic: Change Light map value
Replies: 22
Views: 20082

Re: Change Light map value

Anyone can help me please? Thx
by daryl
27 Oct 2016, 14:21
Forum: Map Creation
Topic: Change Light map value
Replies: 22
Views: 20082

Change Light map value

Hi to All, I have a question: Can I change the lightmap intensity ? for example: In my map I use light line (for example airport lights). I would like shut off this lights during the game. Can i change maplight value or i need to swap the lightmap with other image? I found this on wiki: Spring.Updat...
by daryl
18 Oct 2016, 10:38
Forum: AI
Topic: KAIK or RAI slow to load
Replies: 13
Views: 14379

Re: KAIK or RAI slow to load

As far as I'm aware, yes it's normal. RAIs have to map features, metat etc. as part of their planning, and I think this was the case for KAIKs aswell. But what game/engine are you using? Because the latest versions of Balanced Annihilation have an all new AI, ShardLua, which has much higher skill, ...
by daryl
17 Oct 2016, 14:44
Forum: AI
Topic: KAIK or RAI slow to load
Replies: 13
Views: 14379

KAIK or RAI slow to load

Hi all,
often I play in single player against AI (KAIK o RAI).
All the time I start a play i need to wait 1/2 minutes to play becouse my pc is loading AI.
Is this normal?
If not, do you need more info?
Thx to all!
by daryl
27 Jul 2016, 17:06
Forum: Art & Modelling
Topic: dual color and custom logo
Replies: 11
Views: 5585

Re: dual color and custom logo

this evening I will see the lua code...
probably i will ask you something again...
thankyou!

Go to advanced search