!DpMgMbnDzOvUIXvoTX:jauriarts.org

Spring RTS Game Dev

186 Members
Spring RTS Game Develop room3 Servers

Load older messages


Timestamp Message
19 Sep 2019
20:10:25@rampoina:matrix.orgRampoinaThanks, I don't know how to do that, https://springrts.com/wiki/LuaTutorials::InterCommunications#widgets.2C_gadgets_unsynced_-.3E_gadgets_synced, just says LuaMessages, I've grepped around the Zero-K codebase but I can't figure out how to pass the parameters
20:10:52@rampoina:matrix.orgRampoinaI thought that maybe I was thinking about it the wrong way
20:11:28@rampoina:matrix.orgRampoinathe whole gadget/widget unsynced synced is still a bit confusing
20:11:41@TurBoss:matrix.orgTurBoss:)
20:13:31@TurBoss:matrix.orgTurBossI'm checking for
20:18:45@_discord_291975290295549952:springrts.comivand https://springrts.com/wiki/Lua_UnsyncedCtrl#SendLuaMessage
20:21:56@_discord_287055722502684683:springrts.comSprung ^
20:22:07@_discord_291975290295549952:springrts.comivand Spring.SendLuaRulesMsg("blablabla") on widget side
function gadget:RecvLuaMsg(msg, playerID) on gadget side
20:22:37@_discord_287055722502684683:springrts.comSprung if you enable cheats in ZK you get a menu which has something similar to what you describe
20:22:53@_discord_287055722502684683:springrts.comSprung but it uses a different approach: commands, not lua messages
20:22:56@_discord_291975290295549952:springrts.comivand EvoRTS has working example of SendLuaRulesMsg and gadget:RecvLuaMsg
20:23:22@_discord_291975290295549952:springrts.comivand yep, what Sprung said, commands are more elegant, but seem like overkill for your task maybe
20:23:40@TurBoss:matrix.orgTurBosshttps://github.com/TurBoss/JauriaRTS/blob/85f6c9b2eed3d072806eddada0a8ad783d91b9b3/LuaRules/Gadgets/GBS_createunit.lua
20:23:56@_discord_287055722502684683:springrts.comSprung commands are decent for inworld-targeted stuff
20:25:16@TurBoss:matrix.orgTurBosshttps://github.com/TurBoss/JauriaRTS/blob/85f6c9b2eed3d072806eddada0a8ad783d91b9b3/LuaUI/Widgets/gui_chili_creatunit.lua
20:26:41@rampoina:matrix.orgRampoina ok that's very helpful TurBoss thank you
20:27:02@TurBoss:matrix.orgTurBosshave fun
20:37:31@rampoina:matrix.orgRampoina Sprung: where is that menu?
21:13:34@_discord_287055722502684683:springrts.comSprung enable cheats, it should be on the top bar
21:25:18@rampoina:matrix.orgRampoina Sprung: oh yeah thanks
21:25:55@rampoina:matrix.orgRampoinaI wanted to create the unit in a building status "if build is true the unit is created in "being built" state, with buildProgress = 0" however if I do it like that it doesn't actually build I assume this is because it needs a builder?
21:26:56@rampoina:matrix.orgRampoinahow do I make it build automatically?
21:44:08@_discord_287055722502684683:springrts.comSprung remember its ID it in some table
21:44:26@_discord_287055722502684683:springrts.comSprung then, in gadget:GameFrame periodically add some build progress
21:46:54@rampoina:matrix.orgRampoinamakes sense
21:46:57@rampoina:matrix.orgRampoinathanks
21:47:53@rampoina:matrix.orgRampoinaalso nice to meet you all, I'll be making a thousand questions I hope you don't mind me :P
21:49:16@rampoina:matrix.orgRampoinabut that's good enough for today
21:49:23@rampoina:matrix.orgRampoinanight
21:51:40@_discord_287055722502684683:springrts.comSprung night

There are no newer messages yet.


Back to Room List