English Absolute Text

7 replies
Goto Page
To the start Previous 1 Next To the start
14.02.21 11:47:05 pm
Up
Marcell
Super User
Offline Off
Hey,

I am wondering if it's possible to somehow display an absolute text on the map? So it would act like an image, which has a fixed position.

The problem is I don't want to use images, since the text I wish to use/display has to be unique.

hudtxt looks like doesn't work in this case, as it's part of the hud, not the map.

Apologize, looks like Engi baby has a script already. Unfortunately it is pretty laggy.

If anyone have better option, please tell me.
edited 1×, last 15.02.21 12:06:19 am
15.02.21 09:12:25 am
Up
Gaios
Security Supporter
Offline Off
@user Marcell: There's no real way to have hudtxt on the map unlaggy - but it's still possible to do it in some loops. The best choice to have it lag free is to put image as text.
15.02.21 09:21:25 am
Up
MikuAuahDark
User
Offline Off
You can batch cs2d lua cmd parse at cs2d lua hook always when calculating new position of cs2d cmd hudtxt2 in cs2d lua hook move, but your main problem in here is you need to call cs2d lua cmd parse every frame and hudtxt are network heavy, so if the server isn't lag, the network most likely is.
file cs2d LuaJIT for Dedicated Server (12) JIT POWER! | Know your Lua errors! | Part of LÖVE development team since 11.3
15.02.21 09:58:20 am
Up
Mami Tomoe
User
Offline Off
Have each letter of the ABC as an image and just construct sentences that way.
fish
15.02.21 03:06:23 pm
Up
Marcell
Super User
Offline Off
user MikuAuahDark has written:
You can batch cs2d lua cmd parse at cs2d lua hook always when calculating new position of cs2d cmd hudtxt2 in cs2d lua hook move, but your main problem in here is you need to call cs2d lua cmd parse every frame and hudtxt are network heavy, so if the server isn't lag, the network most likely is.



Ah, Okay, I probably just gonna use images instead.

user Mami Tomoe has written:
Have each letter of the ABC as an image and just construct sentences that way.


I will need further images later and as far as I know it's a bit limited for players. Probably just going with using one image instead.


user Gaios has written:
@user Marcell: There's no real way to have hudtxt on the map unlaggy - but it's still possible to do it in some loops. The best choice to have it lag free is to put image as text.


I was also thinking to get the records from the DB using PHP (with a cron) then making text to an image (PHP libs can do this) then load those images.
edited 2×, last 15.02.21 03:19:18 pm
15.02.21 08:41:36 pm
Up
Gaios
Security Supporter
Offline Off
@user Marcell: But servertransfer.lst won't be updated till server restart.
15.02.21 09:09:47 pm
Up
Marcell
Super User
Offline Off
That's not an issue right now.
16.02.21 12:29:55 am
Up
Mami Tomoe
User
Offline Off
user Gaios has written:
@user Marcell: But servertransfer.lst won't be updated till server restart.


Are you sure? Could've sworn it updated once edited like the bans.lst file...
fish
To the start Previous 1 Next To the start