Author |
Message |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Mon Dec 29, 2003 3:08 pm Post subject: |
 |
|
|
|
Don't make a separate text file for each player. That's just... insane.
But if you REALLY want to, derive a class from ifstream and overload open(). That would be fun.
My suggestion would be to use the PrivateProfile Windows SDK functions. Make an INI file with a section for every player. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
cypher Guest
Offline
|
Posted: Mon Dec 29, 2003 5:00 pm Post subject: |
 |
|
|
|
I agree w/ cyan ... a new file for every player is a tad much insane.. XD |
|
Back to top |
|
 |
ExplodyThingy Server Help Squatter
Age:38 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Mon Dec 29, 2003 5:59 pm Post subject: |
 |
|
|
|
Youre using a String datatype when it wants a char*. Read datatypes.h and look for the string class. Find the char* that is in the class, I believe it is "msg". Use file.open(fname.msg) and you should be fine. _________________ There are no stupid question, but there are many inquisitive idiots.
Loot
Dr Brain> I hate clean air and clean water. I'm a member of Evil Conservitive Industries |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Mon Dec 29, 2003 6:34 pm Post subject: |
 |
|
|
|
Oops. I feel stupid now. |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Tue Dec 30, 2003 1:18 am Post subject: |
 |
|
|
|
k thanks |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Tue Dec 30, 2003 11:36 am Post subject: |
 |
|
|
|
Question: how do you set it up so that it only loads their data if they have data. (ie Someone enters for the first time and has no data to load)
nm, looked in the source for Rampage 2 1/2 |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Tue Dec 30, 2003 12:26 pm Post subject: |
 |
|
|
|
Why not just have one file?? Can you imagine how much junk this bot is going to create?? |
|
Back to top |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
Posted: Tue Dec 30, 2003 12:37 pm Post subject: |
 |
|
|
|
ROFL Rampage 2 1/2, damn i think of leet versions |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Tue Dec 30, 2003 5:09 pm Post subject: |
 |
|
|
|
i AM using an INI, thats why I looked in rampage's source. 50% is like the King of open-source MERV Plugins |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
|
Back to top |
|
 |
ExplodyThingy Server Help Squatter
Age:38 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Thu Jan 01, 2004 2:46 pm Post subject: |
 |
|
|
|
D1st0rt wrote: | i AM using an INI, thats why I looked in rampage's source. 50% is like the King of open-source MERV Plugins |
Hey, all my stuff is open sourced, too, ya know.
D1st0rt wrote: | BTW, thanks to Splody for his iniaccess.cpp |
Its dustpuppy's, as the info suggests in the sources. Theres a more cross- platform version of same thing in my subgame-asss converter, though it works better reading and storing to variables, than for getting one variable at a time. |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Thu Jan 01, 2004 6:41 pm Post subject: |
 |
|
|
|
Explody -- do you have a new host since sscentral.com is down? |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Fri Jan 02, 2004 10:46 am Post subject: |
 |
|
|
|
I didn't mean nothin, splody. It's just that it seems that 50% is always releasing a new thing on the mervbot site, and all his stuff has the source (unlike some of those greedy bastards who submit plugins without the source) |
|
Back to top |
|
 |
SuSE Me measures good

Joined: Dec 02 2002 Posts: 2307 Offline
|
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Fri Jan 02, 2004 3:59 pm Post subject: |
 |
|
|
|
ok, it all works now with the INI. you guys think I should upload the source once I add a few commands? |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Fri Jan 02, 2004 4:54 pm Post subject: |
 |
|
|
|
D1st0rt wrote: | those greedy bastards who submit plugins without the source |
Nah no need to put up the source.
Hey and those of us who don't put the source in the zip just do so not to confuse the newbies. I'll gladly give my sources away to those who ask. |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Fri Jan 02, 2004 4:59 pm Post subject: |
 |
|
|
|
lol I just like to rant every once and a while |
|
Back to top |
|
 |
|