Jump to content

Recommended Posts

Posted

Hi @ all,

 

as the title says, I would like to know, how to use following function:

net.send_chat(string message , boolean all)

 

I have a lot of Messages in my Mission, using "trigger.action.outText" and I want to duplicate the most important ones into the Chat.

 

Why?

Simply because sometimes you find yourself in the middle of a fight and this needs your full attention and it happens, that you miss a message, cause you had not the time to read it in the opper right corner of the screen.

But,... after the fight you could press TAB to open the Chat and read what you missed to read in the fight.

 

My "outText-Messages" already comes with different sounds so you can differentiate what's important and what isn't.

 

and i do not want to extend the duration of the message display more than necessary.

 

looking forward for your :helpsmilie:

 

happy flying :pilotfly:

  • 7 months later...
Posted (edited)

very sad to see that after about one year still nobody replied to my post... 👎🏼

seems like no one knows how to help with this issue. 🤷

Edited by b0rnkilla
Posted

Net is an entirely separate lua environment from mission scripting. Without modifications they can't communicate with each other. For instance slmod modifies missionScripting.lua and opens a socket that allows it to send data from one to the other. Slmod does have what you ask built in via a do script slmod.chatmsg('Your Message Here'). Only thing is that slmod has to be installed on the server running the mission in order for it to work. Aside for that you'd have to modify the game in much the same way. 

  • Thanks 1

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • 1 year later...
Posted (edited)

It is very posible and very simple.

Every thing that happens in mission can be seen in net hooks.

No sockets, no fancy things, no mist, no moose.It is straight and trivial. Just two lua files. One for hooks and one for mission.

I am using it in my server and it works flawlessly and super fast.

 

Edited by mirq
Posted (edited)
On 3/6/2021 at 6:27 PM, b0rnkilla said:

very sad to see that after about one year still nobody replied to my post... 👎🏼

 

Yeah, it took me 6 years to find the solution. I was bussy

On 3/7/2021 at 1:34 AM, Grimes said:

Net is an entirely separate lua environment from mission scripting. Without modifications they can't communicate with each other. For instance slmod modifies missionScripting.lua and opens a socket that allows it to send data from one to the other. Slmod does have what you ask built in via a do script slmod.chatmsg('Your Message Here'). Only thing is that slmod has to be installed on the server running the mission in order for it to work. Aside for that you'd have to modify the game in much the same way. 

They can communicate without modifications. Just need to think out of the box.

Edited by mirq
Posted
1 hour ago, mirq said:

It is very posible and very simple.

Every thing that happens in mission can be seen in net hooks.

No sockets, no fancy things. It is straight and trivial.

I am using it in my server and it works flawlessly and super fast.

See by yourself live in DOGFIGHT ULTIMATE server. You need to go to duel arenas and spawn. You will se that chat window detects BIRTH event from mission environment. But you need to have an oppenent. Chat will tell you when your buddy spawned, and when you spawn. If alone, no chat. Also, HIT event is detected in chat. 

Magic

 

 

Care to explain how?

Posted (edited)
15 minutes ago, Elphaba said:

Care to explain how?

For the moment I want to finish my server and make it great again.

Edited by mirq
Posted
2 hours ago, mirq said:

For the moment I want to finish my server and make it great again.

 

And explaining how you've managed this 'straight and trivial' technique is too complicated to explain now?

Posted (edited)
2 hours ago, Elphaba said:

And explaining how you've managed this 'straight and trivial' technique is too complicated to explain now?

Ah no, you didnt get the point. It is something that only my server does. I want to promote it, not to share.

Edited by mirq
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...