Mission Editor Help
Operation Flashpoint Dragon Rising OFDR Forums :: OPERATION FLASHPOINT: DRAGON RISING :: TECH SUPPORT
Page 1 of 1
Mission Editor Help
There is a slight problem in my copy of the game: when I use the OFP:displaySystemMessage() command, the default font characters in which the operating system is running are cut off. However, all other characters and fonts on this code page are displayed correctly. That is, the terminal simply gives an empty string if, for example, the text is read from an external file. Is it possible to describe the procedure for circumventing this unfortunate misunderstanding?
Razer01- Points : 12
Reputation : 1
Join date : 2014-12-15
Re: Mission Editor Help
I barely figured out how it works. And yes, you need to save the external file in the desired encoding.
- Code:
function onCreate()
local info = io.open("missions/.../infor.lub")
line1 = info:read("*l")
line2 = info:read("*l")
line3 = info:read("*l")
line4 = info:read("*l")
line5 = info:read("*l")
end
function onMissionTime_00x00x05(missionTimeInMilliSeconds)
file:close() -- block message
OFP:displaySystemMessage(line4)
end
Razer01- Points : 12
Reputation : 1
Join date : 2014-12-15
Similar topics
» Mission Samples and Video Tutorials on the Mission Editor
» Mission editor help
» AutoHelp 1.0 for the Mission Editor
» Mission editor and campaign
» [OFFICIAL] OFDR Mission Editor Expansion
» Mission editor help
» AutoHelp 1.0 for the Mission Editor
» Mission editor and campaign
» [OFFICIAL] OFDR Mission Editor Expansion
Operation Flashpoint Dragon Rising OFDR Forums :: OPERATION FLASHPOINT: DRAGON RISING :: TECH SUPPORT
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum