Loading...
  OR  Zero-K Name:    Password:   

Help writing auto-glhf! plugin

19 posts, 782 views
Post comment
Filter:    Player:  
sort

10 years ago
Hi, I adapted a plugin to say "glhf!" at the start of a game when not spectating.

The logic works, I guess I'm just missing the right function to call. Spring.SendMessage() is apparently not what I want, despite being in apparently the right section: http://springrts.com/wiki/Lua_UnsyncedCtrl#SendMessage. Here's the whole script: http://hastebin.com/bujugoleba.lua

I see the message shown in the log at the right time, but not in the chat window.
+1 / -1

10 years ago
USrankkaen, unless some1 else helps you, I will be able to give you an answer tomorrow, when my PC is on.
+0 / -0

10 years ago
lol this is exactly why I dont bother saying responding when people say glhf

its more annoying than polite to churn out this same meaningless phrase at the start of every game
+7 / -0

10 years ago
Yep sportsmanship is dumb.

I mean it every time I say it. If it was meaningless why would I spend time on it? I like games where people play well and have fun. So, I sincerely hope that my opponent has good luck and fun. Saying so is the mark of a good sport.
+2 / -0

10 years ago
automated cliche copy pasta is hardly a mark of good sentiments

if you genuinely wanted to wish a bunch of strangers well then you would bother with thinking/typing something original like "have a good game guys", not that anybody cares either way
+2 / -0
Skasi
10 years ago
"Dear respected individual.
May the bits and bytes be with you, the pathing issues few and the semi-randomly generated numbers create an exciting game for everyone to enjoy!"
+8 / -0
I'm more interested in a taunts widget :
"Hey, you just lost [your com / a big bertha / a strider]! Ha-ha! *draws finger pointing at appropriate place and pings that opponent*"

:D
+0 / -0

10 years ago
So can we put the glhf!-centric debate aside here? You don't have to use it if you don't agree with me. I'm just looking for help from someone who knows the idiosyncrasies of Spring widget development.
+1 / -0


10 years ago
You want SendCommands("say glhf")
+0 / -0
FIrankFFC
10 years ago
Didn't arcshaman do that already?
+0 / -0
Spring.SendCommands("say glhf")
to be precise (might seem obvious but some Spring-related call-outs don't have the Spring. part).
+1 / -0
@Kaen I have already made this. And people got annoyed. Don't take the same road I did!
+2 / -0
10 years ago
Yup, finish this widget and share it with others so we can get "glhf" spam each game we start.
+0 / -0
Every time I play a game of ZK, I'm implicitly assuming that all the players in the battle want everyone involved to have fun, until and unless one of them trolls the game. So by merely participating and not trolling, you're wishing me a good game.

Spring.SendCommands('say Thank you')
+1 / -0
10 years ago
you are lazy to write down:glhf?
+1 / -0

10 years ago
Thanks guys, got it working. Kind of a weird API though.

To all my haters: glhf!
+3 / -0

10 years ago
USrankkaen, welcome to the beatiful world of Spring Lua :)
+0 / -0

10 years ago
But kaen isn't it some kind of unpersonal to let a bot send it?
To me it sounds more like "I don't want to type stuff down, I just wanna play."

+1 / -0

10 years ago
IMO the value of GLHF comes from the very effort you spend typing it. The fact that you take a moment of your time to wish your opponent well is a sign of respect; automating the process loses that.

And remember: respect is everything.
+5 / -0