Mysterious way to create a string

52 views
Skip to first unread message

kepler br

unread,
Jul 10, 2014, 1:20:10 AM7/10/14
to freer...@googlegroups.com
I am creating some things in FreeRCT, but I just can not understand an essential point: create string.

I am currently doing the following:
  • add new line in graphics/rcd/lang/en_GB.txt (example: LIST_TITLE: "List of data about the park";)
  • add new line in src/generated/gui_string.cpp (example: "LIST_TITLE",)
  • add new line in src/generated/gui_string.h (example: GUI_LIST_TITLE,)
As the name itself suggests, the gui_string.cpp and gui_string.h files are automatically generated. But I did not understand how to do this. I found something about the wiki.

kepler br

unread,
Jul 10, 2014, 1:21:33 AM7/10/14
to freer...@googlegroups.com
Ops, "I not found something about the wiki."

Alberth

unread,
Jul 13, 2014, 6:28:05 AM7/13/14
to freer...@googlegroups.com
The list of known strings is in src/rcdgen/string_names.h

The gui_string files are generated from rcdgen to be used by the freerct program for loading texts.
The rcdgen program also processes the lang/*.txt files.

Reply all
Reply to author
Forward
0 new messages