| Mirage Source http://miragesource.net/forums/ |
|
| How do you... http://miragesource.net/forums/viewtopic.php?f=201&t=3634 |
Page 1 of 2 |
| Author: | Pbcrazy [ Thu Apr 24, 2008 9:26 pm ] |
| Post subject: | How do you... |
im sry if this is a newb question but i cant seem to find the answer anywhere. How do you get your program to save, edit or read a .txt or .ini file? |
|
| Author: | Rian [ Thu Apr 24, 2008 9:44 pm ] |
| Post subject: | Re: How do you... |
GetVar and PutVar are how it's handled by default server side. Open your server project, and go to modDatabase. That's where most saving and loading takes place. |
|
| Author: | Pbcrazy [ Thu Apr 24, 2008 9:52 pm ] |
| Post subject: | Re: How do you... |
could you tell me how you would save them and read and edit them like from scratch. cuz im making a game engine from scratch (actually just a chatroom program right now but it will eventually get to that) |
|
| Author: | Stomach Pulser [ Thu Apr 24, 2008 10:37 pm ] |
| Post subject: | Re: How do you... |
Google it... |
|
| Author: | Pbcrazy [ Thu Apr 24, 2008 11:01 pm ] |
| Post subject: | Re: How do you... |
errrrr... i just went and looked and i still cant seem to find it could you just please tell me what the syntax is to do this for VB6 please |
|
| Author: | Anthony [ Thu Apr 24, 2008 11:33 pm ] |
| Post subject: | Re: How do you... |
Code: Dim FileName As String FileName = App.Path & "\Text.ini" Call PutVar(FileName, "GENERAL", "User", "this is your data being written to the text.ini") Call PutVar(FileName, "POOP", "Cheese", "This is your other data being written in a different sub thingy") Thats basically ripped right out of the server side of MSE1. Look in the server side at PutVar and GetVar. |
|
| Author: | Pbcrazy [ Thu Apr 24, 2008 11:41 pm ] |
| Post subject: | Re: How do you... |
ok let me ask this is PutVar and GetVar VB6 syntax or just functions (or subs) that are in the Mirage Source cuz i cant find where these lead to |
|
| Author: | Stomach Pulser [ Fri Apr 25, 2008 12:05 am ] |
| Post subject: | Re: How do you... |
i googled it and got a working one in like 5 minutes (one that isn't put/getvar) the one i have takes the whole text file. |
|
| Author: | Pbcrazy [ Fri Apr 25, 2008 12:19 am ] |
| Post subject: | Re: How do you... |
Stomach Pulser wrote: i googled it and got a working one in like 5 minutes (one that isn't put/getvar) the one i have takes the whole text file. huh? i dont understand about the whole text file what ever you are talking about. all i want to know is what syntax is used so that my program can save variables to .ini files, but im NOT using MS i am making my own engine im sry but now im slightly confused |
|
| Author: | Asrrin29 [ Fri Apr 25, 2008 12:24 am ] |
| Post subject: | Re: How do you... |
I think everyone is trying to say..... GOOGLE IT. |
|
| Author: | Coke [ Fri Apr 25, 2008 12:28 am ] |
| Post subject: | Re: How do you... |
Google: Quote: read write to ini files vb6 Its not hard =P |
|
| Author: | Lea [ Fri Apr 25, 2008 4:22 am ] |
| Post subject: | Re: How do you... |
GetVar and PutVar are MirageSource custom wrappers for the Win32 API functions GetPrivateProfileString and SetPrivateProfileString, respectively (or something like that, been a while...) |
|
| Author: | Pbcrazy [ Fri Apr 25, 2008 12:16 pm ] |
| Post subject: | Re: How do you... |
Dave wrote: GetVar and PutVar are MirageSource custom wrappers for the Win32 API functions GetPrivateProfileString and SetPrivateProfileString, respectively (or something like that, been a while...) Ok thank you Dave that was all i was wanting to know thank you |
|
| Page 1 of 2 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|