Forum

> > CS2D > Scripts > Absolute Text
Forums overviewCS2D overview Scripts overviewLog in to reply

English Absolute Text

7 replies
To the start Previous 1 Next To the start

old Absolute Text

Marcell
Super User Off Offline

Quote
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

old Re: Absolute Text

Gaios
Reviewer Off Offline

Quote
@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.

old Re: Absolute Text

MikuAuahDark
User Off Offline

Quote
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.

old Re: Absolute Text

Marcell
Super User Off Offline

Quote
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

old Re: Absolute Text

Mami Tomoe
User Off Offline

Quote
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...
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview