Search

Search found 192 matches

by daryl
19 May 2017, 09:09
Forum: Map Creation
Topic: Change Light map value
Replies: 22
Views: 12297

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: dual color and custom logo

this evening I will see the lua code...
probably i will ask you something again...
thankyou!
by daryl
27 Jul 2016, 10:04
Forum: Art & Modelling
Topic: dual color and custom logo
Replies: 11
Views: 4601

dual color and custom logo

Hi all, so,
Does Spring support dual color on units ?
And does Spring support custom logo on units?

thx!
by daryl
01 Mar 2016, 07:37
Forum: Lua Scripts
Topic: Load/Unload units via LUA
Replies: 8
Views: 1201

Re: Load/Unload units via LUA

You've asked to unload to x,y,z,r=10,10,0,15, which https://springrts.com/wiki/Lua_CMDs#CMDTYPE.ICON_UNIT_OR_AREA says is a circle of radius r (in the x-z plane) about the point x,y,z. If you give it some saner values (part of your circle is outside of the map, probably most/all of it is below grou...
by daryl
29 Feb 2016, 20:18
Forum: Lua Scripts
Topic: Load/Unload units via LUA
Replies: 8
Views: 1201

Re: Load/Unload units via LUA

It's wrong... how can i get the unitID?? Spring.GiveOrderToUnit(transportID, CMD.LOAD_UNITS, {transporteeID}, {}) Spring.GiveOrderToUnit("atlas", CMD.LOAD_UNITS, {"com"}, {}) should be Spring.GiveOrderToUnit(atlas, CMD.LOAD_UNITS, { com }, {}) "atlas" is the string &qu...

Go to advanced search