The Daily Click ::. Forums ::. Klik Coding Help ::. INI problem loading frame - help!
 

Post Reply  Post Oekaki 
 

Posted By Message

Rikus

Administrator
Crazy for News

Registered
  02/12/2001
Points
  980502
29th November, 2008 at 19:08:50 -

Hey guys i was just fiddeling with a old school cnc game that used ini files to save games. I am having a heck of a time to load stuff from the ini file ussing mmf 2. I know there are better ways to save stuff now but i dont want to fiddle with this old code to much. any help would be apriciated.

Here is what is saved inside the ini file:

[]
=27
1=3
2=0
3=0
pos.Active object 3=306,85
4=0
5=0


Now i am trying to load is the frame wich is number 27. What action do i use so that it loads frame number 27 that it did save earlier to the ini file so that still works.

In the old code that worked in cnc i think i had:

value of( "Save Game" )

The "save game" being the name of the ini. What can i do to load the ini information that is stored inside using mmf 2?

 
Be sure to follow us on the twitters for the latest and greatest: @dailyclick

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
29th November, 2008 at 23:07:53 -

Just use the "get value" expression. It doesn't require you to specify a group or item.

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
30th November, 2008 at 00:10:07 -

Uh, yeah you should just 'set frame' to 'value of ini'

I don't know if it gets confused if you haven't saved the frame number in a separate item because i always do it like that.

 
.

RedEnchilada

formerly RedEchidna

Registered
  01/08/2008
Points
  301

VIP MemberWii OwnerThe Cake is a LiePicture Me This Round 24 Winner!
30th November, 2008 at 02:36:02 -

Is it possible to change the item to ""?

 
http://www.youtube.com/watch?v=WYrSD35vHo4
woooooooooooooooooaah maaaaaaaaaaaaaaaaaaaaan
   

Post Reply



 



Advertisement

Worth A Click