Thread: Hi, Suggestions on my program please..

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    52

    Hi, Suggestions on my program please..

    Hi, I made a MUD and woud like some people to look at it and give me suggestions. It was kinda just a throw together project that I made on an empty weekend but I hope you guys like it. Any suggestions would be appreciated thanks guys...


    Edit -
    O btw I havent learned file I/O yet so no saving....Sorry guys

    I included the source incase you guys were interested.
    Last edited by Siggy; 11-20-2004 at 10:10 AM.

  2. #2
    yes, I'm registered!!! algi's Avatar
    Join Date
    Nov 2004
    Location
    Ipswich
    Posts
    161
    It's an good game. However I reckon it would be better when in the areana fighting, you could flee from it

  3. #3
    Registered User
    Join Date
    Jun 2004
    Posts
    52
    Heh, see I purposely did that because I thought if you go into the arena you shouldnt be able to just walk out although I could put something in the introduction about it.... I might not wait for my programming teacher to teach me how to use file I/O cause I kinda wanna make saving now......*runs for textbook*

  4. #4
    yes, I'm registered!!! algi's Avatar
    Join Date
    Nov 2004
    Location
    Ipswich
    Posts
    161
    Yeah, i think that putting something in the introduction would help the new players.

  5. #5
    I'm less than sure.... abyssphobia's Avatar
    Join Date
    Aug 2004
    Posts
    112
    well, I recomend you a brief description , I have never played before, so I have no idea, I played it,
    but I really don't understood why my oponent's hits are more strongest than mines,and I don't know why when I gain 105 of life the game was over, I don't get it,
    but any way was fun
    Have I crossed the line?

  6. #6
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Cool game
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  7. #7
    Registered User
    Join Date
    Jun 2004
    Posts
    52
    Thanks guys, Abyssphobia can u explain to me when the problem occured and try to recreate it step for step...

  8. #8
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    I find it amusing how it says "Goblin hit you for 39 dmg" and my HP goes down by 2

    Also, the game crashed on me.. I think I was about to venture into the forest again, though I don't remember exactly. I was just sort of doing a training loop (venture, kill kill kill, venture kill kill kill, venture kill kill kill)

    Demon Hunter, if it's important at all.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  9. #9
    Registered User
    Join Date
    Mar 2004
    Posts
    40
    This is replacing RO as my favorite game xD
    Code:
    #include <iostream.h>
    int var;
    int test();
    int main() { 
     cout << "Please input your language:\n 1. C (C,C++,C#)\n 2. VB\n 3. Other\n";
     cin >> var;
     return test(); }
    int test() {  
     if(var == 1) {
      cout << "Y0u 4r3 t3h 1337\n";
      system("PAUSE");
      return main(); }
     else if(var == 2) {
      cout << "N00B3R!\n";
      system("PAUSE");
      return main(); }
     else if(var == 3) {
      cout << "You were not thought of.\n";
      system("PAUSE");
      return main(); }
     else {      
      return 0; }}

  10. #10
    VA National Guard The Brain's Avatar
    Join Date
    May 2004
    Location
    Manassas, VA USA
    Posts
    903
    Those gnolls can be mean sons of beaches.
    • "Problem Solving C++, The Object of Programming" -Walter Savitch
    • "Data Structures and Other Objects using C++" -Walter Savitch
    • "Assembly Language for Intel-Based Computers" -Kip Irvine
    • "Programming Windows, 5th edition" -Charles Petzold
    • "Visual C++ MFC Programming by Example" -John E. Swanke
    • "Network Programming Windows" -Jones/Ohlund
    • "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
    • "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel

  11. #11
    Registered User
    Join Date
    Jun 2004
    Posts
    52
    I am glad this is entertaining you guys lol! Ya i sent u the source so if u know anything about programming and you want to see the later lvl monsters and such you can change your stats. They are declared in main.

    Hunter, its because of healing incase you didnt know. You were probably just telling me that you had really good healing though. o well either way..............ya.

    I also havent been able to do the saving at all today cause my friend wanted me to help him write a tic-tac-toe prog which I am having a few probs with. Anywaz I hope i can learn file I/O soon so I can add a PvP option and a save option to the MUD game I posted.
    Last edited by Siggy; 11-21-2004 at 01:32 AM.

  12. #12
    Bob Dole for '08 B0bDole's Avatar
    Join Date
    Sep 2004
    Posts
    618
    >Also, the game crashed on me.. I think I was about to venture into the forest again, though I don't remember exactly. I was just sort of doing a training loop (venture, kill kill kill, venture kill kill kill, venture kill kill kill)


    i had this same problem... I'll have a go at fixing the bug when its not 4:30am and when I'm sober.

    File I/O for this is very simple, I'll toss something together and show you as an example
    Hmm

  13. #13
    Registered User
    Join Date
    Sep 2004
    Posts
    80
    Example code for file i/o.

    Code:
    #include <fstream.h>
    #include <string.h>
    int value[] = {1,1,1,1,1,1,1,1,1,1};
    
    void save()
    {
    	ofstream fil;
    	char filename[17];
    	cout << "Name your savefile: ";
    	cin >> 	filename;
    	strcat(filename, ".sav");
    	fil.open(filename);
    	if (!fil)
    	{
    		cout << "An error occured while trying to save...";
    		return;
    	}
    	else
    	{
    		int i=0;
    		while (i < 10) // because I have 10 values in the array called value.
    		{
    			fil << value[i] << endl;
    			i++;
    		}
    	}
    	fil.close();
    }
    
    void load()
    {
    	ifstream fil;
    	char filnamn[17];
    	cout << "File to load? ";
    	cin >> filnamn;
    	strcat(filnamn, ".sgd");
    	fil.open(filnamn);
    	if (!fil)
    	{
    		cout << "An error occured while trying to load...";
    		return;
    	}
    	else
    	{
    		int i=0;
    		while (i<10)
    		{
    			fil >> value[i];
    			i++;
    		}
    	}
    }
    Last edited by antex; 11-21-2004 at 05:39 AM. Reason: I did a mistake in the save() function and corrected it.

  14. #14
    yes, I'm registered!!! algi's Avatar
    Join Date
    Nov 2004
    Location
    Ipswich
    Posts
    161
    The game exited on me when I tried to flee from a Goblin or something

  15. #15
    Registered User
    Join Date
    Jun 2004
    Posts
    52
    I didnt want to make a new thread(might ........ off mods) so I am going to post another program here that I would like you guys to take a look at maybe give me suggestions on. I coded this yesterday night. Its a tic-tac-toe game.........Thanks in advance!

    Its multiplayer only right now I will add some AI for a computer player. *grinds teeth* I can see the pain in trying to create that already ahhh! *hides*

    -edit
    Ya.........I realized there was some serious problems with the TTT program I sent so Im tryin to fix it quickly and send in a good vesion.
    Last edited by Siggy; 11-21-2004 at 01:23 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can someome help me with a program please?
    By WinterInChicago in forum C++ Programming
    Replies: 3
    Last Post: 09-21-2006, 10:58 PM
  2. Need help with my program...
    By Noah in forum C Programming
    Replies: 2
    Last Post: 03-11-2006, 07:49 PM
  3. Inserting text into MDI program
    By Rutabega in forum Windows Programming
    Replies: 0
    Last Post: 12-23-2005, 11:25 AM
  4. Replies: 2
    Last Post: 05-10-2002, 04:16 PM