Author Topic: DrawText alpha issue + 72 chr limit  (Read 1903 times)

0 Members and 1 Guest are viewing this topic.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
DrawText alpha issue + 72 chr limit
« on: June 10, 2007, 03:10:41 pm »
It seems that the alpha loops back over to 100% after it reaches 0% if it it starts lower than 100%.
Code: [Select]
DrawText(0,'TEXT TEST',280,$7FFFFFFF,0.2,8,300);
I also created a command that draws to a person's screen what you put in the command, and once I reached the 72nd character, error messages came popping up and was needed to control+alt+delete to close out Soldat.
« Last Edit: June 10, 2007, 05:10:14 pm by DorkeyDear »

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: DrawText alpha issue + 72 chr limit
« Reply #1 on: June 10, 2007, 09:20:00 pm »
The solution is simple, don't draw things that long.

Offline deguix

  • Major
  • *
  • Posts: 79
Re: DrawText alpha issue + 72 chr limit
« Reply #2 on: June 11, 2007, 08:52:53 am »
That's the maximum amount of text a person can type in-game... probably some Soldat limitation.

Date Posted: June 11, 2007, 02:35:58 AM
btw... did this amount changed from 75 to 72 when changing from 2.5.x -> 2.6.0, or is this some misconception of mine?

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: DrawText alpha issue + 72 chr limit
« Reply #3 on: June 11, 2007, 11:12:30 am »
I could have miscounted... It may still be 75.
How-a-bout the alpha thing enesce, is there going to be a fix in the next version? :)

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: DrawText alpha issue + 72 chr limit
« Reply #4 on: June 11, 2007, 11:36:32 am »
The alpha thing might have nothing to do with the server, you know. I think that's hard coded in the game, and it doesn't cover the possibility that the text starts with some transparency.
urraka

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: DrawText alpha issue + 72 chr limit
« Reply #5 on: June 11, 2007, 01:19:31 pm »
Shall I post this under the Game Improvements / Suggestions catigory then?
Other topic at: http://forums.soldat.pl/index.php?topic=15764