Author Topic: Solution for Access violation when killed player with name >20 chars  (Read 1031 times)

0 Members and 1 Guest are viewing this topic.

Offline ShiraNai7

  • Major(1)
  • Posts: 5
Are you getting Access violation message when you kill someone with name length more than 20 chars? And font.ini changes don't help? Well, I have figured out how to fix it another way. And the way is:

  • go to soldatfolder/txt/languages/
  • open file yourlanguage.txt (where yourlanguage is your current active laguage - e.g. english.txt for english etc.)
  • replace first two line with something like this:

you have been terminated
target terminated


  • save the file
  • open soldat config, click on language tab, select your language (which you have edited in last steps) and press ok, then save and exit
  • play soldat

Hope that helps someone. :D


edit: someone pls tell moderator to add this solution here: http://forums.soldat.pl/index.php?topic=13.0
« Last Edit: August 16, 2008, 01:07:54 pm by ShiraNai7 »

Offline STM1993

  • Rainbow Warrior
  • *****
  • Posts: 2072
  • It's been a long time.
Re: Solution for Access violation when killed player with name >20 chars
« Reply #1 on: August 16, 2008, 10:50:57 pm »
This is helpful, but it MAY be inconvenient to some players.

Now, when you kill someone or if someone kills you, instead of showing:

"You killed (name of person)"
"Killed by (name of person)"

You'll get:

"Target terminated"
"You have been terminated"

^ For EVERY person you kill or get killed by. Though you can see who killed you or who you killed by the kill console at the right, sometimes other people may kill so fast but you kill so slow that you miss out the name when you are curious of who you killed.



Let me refine this guide a bit:

You see the first two lines?
Killed by %s
You killed %s

The %s is the special command which shows the player's name of who you killed or who killed you. Just take that away, and it's good enough. But you may want to modify the text there a little bit to suit your taste, for example, Shira likes a Terminator theme, so he changes the two lines to:

"You have been terminated"
"Target terminated"



That is the reason why in some screenshots, you may see weird killing texts like "You owned a Zombie" , "You captured the pirate flag!" instead of the default text.

Offline ShiraNai7

  • Major(1)
  • Posts: 5
Re: Solution for Access violation when killed player with name >20 chars
« Reply #2 on: August 17, 2008, 02:37:58 am »
I completely understand how these %s marks work. But leaving them in these messages will not solve anything, because they are in fact causing the access violation message. And that's what my solution is based on - players' names > 20 chars won't give you access violation cuz they are not shown. :D That is all.

If someone really minds that he/she doesn't see names of people they kill (or get killed by), he/she has to make decision: I will see names and hold enter for 5 seconds after killing (or dying) to get rid of access violation msg temporarily (and surely get killed during that time) OR i will not see names and won't have to worry about bullheads who need 20+ chars for their really cooool name. ::)

It would be good idea to add option like this to soldat's new version config:
Limit displayed length of name to 19 chars - YES/NO

Or simply enable this feature with already present video compatibility settings. 8)
« Last Edit: August 17, 2008, 05:34:19 am by ShiraNai7 »

Offline ikbenbram

  • Major(1)
  • Posts: 5
  • YAY YAY YAY
Re: Solution for Access violation when killed player with name >20 chars
« Reply #3 on: August 17, 2008, 06:58:51 am »
guys a script would solve the problem because sometimes if you get in a server you get a mesage: maximum name length: 21 chars...
name approved have fun!  [retard]

but i cant find the script anymore  >:(
i love cookies :D :D :D :D

Offline ShiraNai7

  • Major(1)
  • Posts: 5
Re: Solution for Access violation when killed player with name >20 chars
« Reply #4 on: August 17, 2008, 07:30:39 am »
It will solve the problem only if it would be installed on all servers by default. As I wrote - better solution is to implement that Limit displayed length of name to 19 chars - YES/NO feature directly into soldat config for players which are experiencing access violation problem...
« Last Edit: August 17, 2008, 07:34:07 am by ShiraNai7 »

Offline freestyler

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 326
Re: Solution for Access violation when killed player with name >20 chars
« Reply #5 on: August 17, 2008, 11:16:09 am »
Wouldn't it be easier if Soldat client had this feature implemented by default? By the way, why do 20+ chars names cause access violations?

Offline ShiraNai7

  • Major(1)
  • Posts: 5
Re: Solution for Access violation when killed player with name >20 chars
« Reply #6 on: August 17, 2008, 11:38:43 am »
I'm saying it all the time here. And to the AV message cause - it's probably something regarding graphic card... I'm not really sure  :)

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
Re: Solution for Access violation when killed player with name >20 chars
« Reply #7 on: August 17, 2008, 09:01:18 pm »
I'm saying it all the time here. And to the AV message cause - it's probably something regarding graphic card... I'm not really sure :)

It is; basically when a message shows up, it's rendered offscreen, and SOME videocards can't handle doing that when the offscreen render target is larger than a certain size.