playMaker

Author Topic: Action to Read and Write strings to .txt files?  (Read 2986 times)

westingtyler

  • Sr. Member
  • ****
  • Posts: 277
    • My Video Game Projects Web Site
Action to Read and Write strings to .txt files?
« on: October 10, 2015, 02:22:22 AM »
Hello! I would love the ability for the player to type in-game journal entries or quest notes that are saved in a real text file somewhere on the real computer.

It would also allow me to drop old book text files like Edgar Allen Poe or Jane Austen books into a folder, and allow them to be read in-game on a book. Especially great for making an Oculus Rift virtual library. Is this possible?

We can save screenshots to a folder already, and this may use similar code. (It would also be great to be able to bring a screenshot back into the game from an image file, but that should be a different request.)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Re: Action to Read and Write strings to .txt files?
« Reply #1 on: October 10, 2015, 05:07:52 AM »
Hi, for the first part use playerprefQ. It will save a string into a text file. You can edit the code to chnage the txt file path if you want. You will find the actions in this forum.

The second part is possible.. I have seen the action but i cant remember the name. Check the ecosystem or this forum.

Hope it helps