Forum

> > CS2D > Scripts > Absolute Text
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Absolute Text

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Absolute Text

Marcell
Super User Off Offline

Zitieren
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.
1× editiert, zuletzt 15.02.21 00:06:19

alt Re: Absolute Text

Gaios
Reviewer Off Offline

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

alt Re: Absolute Text

MikuAuahDark
User Off Offline

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

alt Re: Absolute Text

Marcell
Super User Off Offline

Zitieren
user MikuAuahDark hat geschrieben
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 hat geschrieben
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 hat geschrieben
@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.
2× editiert, zuletzt 15.02.21 15:19:18

alt Re: Absolute Text

Mami Tomoe
User Off Offline

Zitieren
user Gaios hat geschrieben
@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...
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht