Author Topic: TranslateCommonToLanguage toolset crash  (Read 327 times)

Legacy_ShadowM

  • Hero Member
  • *****
  • Posts: 1373
  • Karma: +0/-0
TranslateCommonToLanguage toolset crash
« on: March 29, 2014, 06:11:54 pm »


               

I been trying to use TranslateCommonToLanguage function from DMFI / my hr tool etc..


but when I use other than with the talking system for like just getting a translated string it throw a toolset error.  C0000420


 


Anyone else got this issue?



               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
TranslateCommonToLanguage toolset crash
« Reply #1 on: March 31, 2014, 08:37:52 pm »


               

I am currently making use of these string cyphers, and not running into trouble. But I did at one point before I started using NWNTX because I had exceeded the number of labels which the compiler allows. I don't know what that error code means, but wonder if it is a similar sort of problem.



               
               

               
            

Legacy_ShadowM

  • Hero Member
  • *****
  • Posts: 1373
  • Karma: +0/-0
TranslateCommonToLanguage toolset crash
« Reply #2 on: March 31, 2014, 08:50:23 pm »


               


I am currently making use of these string cyphers, and not running into trouble. But I did at one point before I started using NWNTX because I had exceeded the number of labels which the compiler allows. I don't know what that error code means, but wonder if it is a similar sort of problem.




Thanks henesua, that kinda what I was thinking. I been adding so much into my hr base that I think I hit label or some other limit. I'm using nwntx too. I got around it by runing it through a ExecuteScript call, so all good. I have to spend one of my updates condensing and fine tuning the amounts I using so I have some breathing room still. I only got the error when I was running it through my spell router script also. If I just did it with a simple script call it worked fine.


               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
TranslateCommonToLanguage toolset crash
« Reply #3 on: April 03, 2014, 02:36:40 am »


               

You're hitting the 'too many identifiers' compiler error. The solution is to use a compiler like Skywings (which is also in the NWNTX, now), which can handle more identifiers. SIMTools runs into the same problem if you include it in any scripts. It's one of the reasons I gave serious consideration to retrofitting out all the english-based string consts intended to make it more portable to other languages - the sheer number of consts makes the identifier count problematic when you include it in almost any other major module event script (which themselves are likely to have a fair number of identifiers).


 


Funky



               
               

               
            

Legacy_ShadowM

  • Hero Member
  • *****
  • Posts: 1373
  • Karma: +0/-0
TranslateCommonToLanguage toolset crash
« Reply #4 on: April 03, 2014, 03:54:48 am »


               

Thanks Funky for the information and link. Is there a fast way to get a total count of identifiers I have? I have to get around to cleaning house and doing some reorganizing.