Home   Help Search Login Register  

Author Topic: RscMap and Date/Time  (Read 659 times)

0 Members and 1 Guest are viewing this topic.

Zazoo

  • Guest
RscMap and Date/Time
« on: 03 Apr 2004, 23:36:31 »
2 Questions, both relating to Resources and the resource.bin file:

Is it possible to use the RscMapControl class to create new maps displays?
I've tried and tried but all I ever get is a black square where the resource should be.
I can change the class properties for the RscMap based classes (i.e. the map for the editor and the in-game map screen) and they work (for example I can make the map smaller, or change the position on screen). What I can't do (successfully is create a new instance of this class (it works, no errors, but all I get is a black overlay)

Second
Some of the dialogs in-game display info like the date and time, however when you look at the class in the resource file, it just has "$STR_DISP_ERROR".
When the game calls the class (such as the version number that is displayed on the main menu) you get the correct value (i.e. "1.xx"). If you call the class yourself though, you get the literal value of "$STR_DIS_ERROR" as it is defined in the string table ("ERROR - replace").
Is this all hardcoded, or is there a way to call these values? I have a dialog and I want it to display the date, so being able to get this value (as it is obviously stored in their since there in-game dialogs use it) would really help.

Thanks,
~Mike


Offline Jezuro

  • Members
  • *
  • Hookah 4 lyfe!
    • Jezuro's ArmA Workshop
Re:RscMap and Date/Time
« Reply #1 on: 07 Apr 2004, 19:38:34 »
As far as I know, there is no way how to recall the values of internal dialogue stuff like date and others. Scripts operating with these are coded in the .exe files  :(

The same for the dialogues from resource.bin...

But you can get the current day time by using the "DayTime" command.
« Last Edit: 07 Apr 2004, 19:41:52 by Jezuro »
"We are Her salvation, and through Her command we shall live forever. I will not die. Not here. Not now. Never!!!"