playMaker

Author Topic: Save - Load data in .txt or ect..  (Read 2996 times)

Bqlqzs

  • Junior Playmaker
  • **
  • Posts: 52
    • View Profile
Save - Load data in .txt or ect..
« on: September 08, 2013, 12:51:51 PM »
Hello

Save - Load values in .txt file or any thing. as Database

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: Save - Load data in .txt or ect..
« Reply #1 on: September 09, 2013, 05:36:07 AM »
Hi,

 Could you give a bit more context? do you expect to edit these files manually in between sessions? or just a way to save game states on the user computer or device?

 Also, what kind of content do you plan on loading saving?

 Bye,

 Jean

Bqlqzs

  • Junior Playmaker
  • **
  • Posts: 52
    • View Profile
Re: Save - Load data in .txt or ect..
« Reply #2 on: September 11, 2013, 09:24:28 AM »
Hi,

 Could you give a bit more context? do you expect to edit these files manually in between sessions? or just a way to save game states on the user computer or device?

 Also, what kind of content do you plan on loading saving?

 Bye,

 Jean

I like a same way as the WWWOBJECT action, just not read data, I need write.

So example write string value in a .txt file, maybe set the line number

example:

Tomas
24
xy...

ect.. you can set the line number and the content. this is string value..

I need a very simply database, but I cant create mysql login and register for my game.. :/ but this simply read, and write .txt will be easy and good

Or i need any mysql database action.. but I think it is difficult...

for simple online score board, or character inventory... database
« Last Edit: September 11, 2013, 09:27:05 AM by Bqlqzs »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: Save - Load data in .txt or ect..
« Reply #3 on: September 11, 2013, 09:53:30 PM »
Hi,

 Yeah, for that kind of needs, either you go for tools from the asset store, or you'll have to dive into database. There are some database system that are supported with PlayMaker custom actions. Have you checked them? Your "issue" here is that I think you are trying to cover everything with one solution, when probably, it's better to define areas . Character Inventory can be offline, while leaderboard must be online, so likely this is two different systems.

http://u3d.as/content/zhing/acid-no-sql-data-storage-solution/4oW
http://echo17.com/simplesql.html

for inventory, plenty of solution on the asset store, but none that I am aware are providing PlayMaker Actions.


 Bye,

 Jean

Bqlqzs

  • Junior Playmaker
  • **
  • Posts: 52
    • View Profile
Re: Save - Load data in .txt or ect..
« Reply #4 on: September 12, 2013, 02:00:33 AM »
Thx, Yes I know this... Just it isnt free :D
but ok.. i need buy..

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: Save - Load data in .txt or ect..
« Reply #5 on: September 12, 2013, 03:24:19 AM »
Hi,

 Well... :) You can go all the way and implement most of this for free, For example, you can create a php server using php/mysql and then that will be free for you to implement anything in your backend, and you create your own REST api and all, that's totally doable. In game, for offline use, you can use ArrayMaker and custom actions like WritetoFile and LoadFrom file to actually store your inventory or something,

but be careful, it would take a lot more time then getting a solution that fit your needs, and sometimes paying for it up front is less expensive than the time you are going to spend on this as a whole, so something to weight in your productivity/cost balance.

 Bye,

 Jean