Modify

Ticket #183 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

can not save design "Mantis Half-tracks repair turret" whith french translation

Reported by: gene69 Owned by:
Priority: normal Milestone:
Component: other Version:
Keywords: Cc:
Blocked By: Blocking:
Operating System: All/Non-Specific

Description

When playing whith french translation, rev6442 failed to save this design, i assume it's a localisation issue.

i'm looking for a way to disable french language to confirm.

error   |000064855992: [writeTemplateFile] Truncation of droid name occurred! Max droid length (without truncation while saving) is 59
error   |000064855992: [writeTemplateFile] Assert in Warzone: game.c:9384 (strlen(psCurr->aName) + 1 < sizeof(psSaveTemplate->name)), last script event: '<none>'
warzone2100: game.c :9384 : writeTemplateFile:  L'assertion « strlen(psCurr->aName) + 1 < sizeof(psSaveTemplate->name) » a échoué.
Saved dump file to '/tmp/warzone2100.gdmp-T6U3Gg'

Attachments

warzone2100.gdmp-T6U3Gg (11.5 KB) - added by gene69 3 years ago.
memory dump made after crash

Change History

Changed 3 years ago by gene69

memory dump made after crash

comment:1 in reply to: ↑ description Changed 3 years ago by anonymous

Replying to gene69:

When playing whith french translation, rev6442 failed to save this design, i assume it's a localisation issue.

i'm looking for a way to disable french language to confirm.

error   |000064855992: [writeTemplateFile] Truncation of droid name occurred! Max droid length (without truncation while saving) is 59
error   |000064855992: [writeTemplateFile] Assert in Warzone: game.c:9384 (strlen(psCurr->aName) + 1 < sizeof(psSaveTemplate->name)), last script event: '<none>'
warzone2100: game.c :9384 : writeTemplateFile:  L'assertion « strlen(psCurr->aName) + 1 < sizeof(psSaveTemplate->name) » a échoué.
Saved dump file to '/tmp/warzone2100.gdmp-T6U3Gg'

EDIT : more exactly, there is a crash (only) when you try to save the game.

comment:2 Changed 3 years ago by anonymous

"Mantis Half-tracks repair turret" is translated by

"tourelle de Réparations Mobile Mante Religieuse Autochenille".

what a sweet name :)

if i rename the truck it works...

comment:3 Changed 3 years ago by Buginator

The problem is that psCurr->aName is 256 in length, and psSaveTemplate->name is only 60 chars.

I am not sure how we will fix this, if we increase size from 60 to 256, then it will break savegames.

:(

comment:4 Changed 3 years ago by Buginator

  • Status changed from new to closed
  • Resolution set to fixed

For what it is worth, removed the assert, and we are going to need a new savegame format so it doesn't truncate the name.

Removed assert in r7146

View

Add a comment

Provide an email address (will not be publicly visible) in the Author field or register an account (uses your forum account).

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.