We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,420 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

how to make an online multi-player game server preferably in batch.

I was wondering if it is possible to make an online multi-player game server preferably in batch. I am hoping to make a PowerPoint game that can be multi-player with the help of batch. Also even answers that do not suit my requirements fully will help, because i am 11 years old and this is about all I know of batch script:

@echo off

@echo on

echo (%time%) (%date%) (%Computername%) (%Username%)

cls

dir /s

del

ren

rename

title

color

echo.

ping localhost -n (number in seconds) >nul

pause

start (path) (or filename.extension if the file is in the same folder)

::

:

Goto

msg * (message)

msg "Title" (message)

exit

taskkill

refresh

IPCONFIG

PING

TASKLIST

set /p letter=
if %letter% == (letter) (operation)

set/p one=

set/p two=%one%

set/p three=%one%%two%

set/a final=%one%%two%%three%

(echo) %one%%two%%three%=%final%

and not much more realy, but what i don't know in batch i try to make up for in javascript, vbscript, C++, htm, html. etc.

Thank you in advance.

PS.Is there any difference between html and htm
Is there any difference between batch and n2
It would be realy helpful in a project i am making if you could help!

7
Contributors
10
Replies
1 Month
Discussion Span
1 Year Ago
Last Updated
13
Views
Batch Devil
Newbie Poster
Banned
10 posts since May 2011
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0

In batch???
Why would you want to do that???
Batch is really old. It does not have graphics either, nor multiplayer capability. You can make a super simple word-based game but not much more.
I advise you try C++ with DirectX or OpenGL or XNA Studio.

PS.Is there any difference between html and htm
No. Old computers could have only 3 letter extension so them used htm instead of html. It doesnt matter.

sergent
Posting Pro
598 posts since Apr 2011
Reputation Points: 70
Solved Threads: 23
Skill Endorsements: 0

He may be using batch as a kick off point. Commonly enough in games they use batch file. Most definitely in valve games i think. But batch is more suited to downloading and installing updates ( that's how i see it's used. ) thank creating anything other than hangman?

As sergent said i agree with the C++ idea. but depending on how far you want to go with this. If you only ever want to go to small basic X's and O's games. Then i would honestly sugest visual basic. Because it is very easy to learn and has tons of built in classes.

Do listen to sergent suggestion of XNA. It's not too bad!

Maybe try Java?

Have you tried searching google and looking for results? Maybe searching the forum.

I found this simple result from searching : http://technet.microsoft.com/en-us/library/dd309586.aspx

NSSLTD

nssltd
Junior Poster
124 posts since Jul 2010
Reputation Points: 31
Solved Threads: 2
Skill Endorsements: 0

Hi,
Would any programming language be able to operate a powerpoint file?

Batch Devil
Newbie Poster
Banned
10 posts since May 2011
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0

Thanks for the replys! XNA was very helpful! I have one more question:
Could the same batch file be used by many users at the same time and each of the users can see each other users progress.
This would help in creating a multi-player fighting game like: http://www.naruto-arena.com/the-basics/
Thanks in advance!

Batch Devil
Newbie Poster
Banned
10 posts since May 2011
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0

Would any programming language be able to operate a powerpoint file?

It is POSSIBLE, because powerpoint reader/creator was created with one of the programming languages. But it is SUPER hard. You will get something like this:

´ñCËßwOÕ-g”Ák°ÁcËg$¾í./šÝ‘XQ{jù˜s¼“’ÔˆH„ˆ¾túä’¦AFP0 ¼®ë©‚Ïès•—¼k°‡Éföx(壓„–8»?.¬–CŒÖ(ÈÅ©Ü{ý‹R¢(×M¤«bƒË³„¥ó7à¤{-¯IF#{ƒ”_ÀR'’dKñæ0åÉFü¿öŒïÐ÷F¡jrå'"&¤×œß@_·ÈõõÝ'   ÿÿ PK     ! pð8ܾ   8     _rels/.rels„Á
Â0Dï‚ÿönÓz‘¦½ˆ xý€%Ù¶Á6	Ù(öïÍÑ‚àqæÍLݾ§Q¼(²õNAU” Èio¬ëÜo§Í'tGïHÁLm³^ÕW1å6°ÈÇ
†”ÂAJÖMÈ…ä²Óù8aÊ2ö2 ~`Or[–;¿Ð,˜âlij©@Üæ›ÿ³}×YMG¯Ÿ¹ô£Bòh
]pöÏ”±{J
Läoc!ª"ïÙÔrñ·ù   ÿÿ PK     ! GI‘ö  Ë
  !   drs/slideLayouts/slideLayout1.xmlÌWÝrÚ8

It is much easier to create an HTML editor and edit HTML files because they are actually made to be read by humans.

And can I ask you why you want to make a program to operate powerpoint?


And sorry, I don't know much batch so I cannot answer your last question :(

sergent
Posting Pro
598 posts since Apr 2011
Reputation Points: 70
Solved Threads: 23
Skill Endorsements: 0

You don't want to use batch for a server. There is no threading capabilities for such a task. You will want a language that has a strong web development base, such as python or php.

Tech B
Posting Whiz in Training
268 posts since May 2009
Reputation Points: 59
Solved Threads: 33
Skill Endorsements: 0

Thanks a lot but is this free to play online games?

mali.sandhya2
Newbie Poster
9 posts since Jun 2011
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0

Is it free to play online games? What do you mean?

sergent
Posting Pro
598 posts since Apr 2011
Reputation Points: 70
Solved Threads: 23
Skill Endorsements: 0

He may be using batch as a kick off point. Commonly enough in games they use batch file. Most definitely in valve games i think. But batch is more suited to downloading and installing updates ( that's how i see it's used. ) thank creating anything other than hangman?

As sergent said i agree with the C++ idea. but depending on how far you want to go with this. If you only ever want to go to small basic X's and O's games. Then i would honestly sugest visual basic. Because it is very easy to learn and has tons of built in classes.

Do listen to sergent suggestion of XNA. It's not too bad!

Maybe try Java?

Have you tried searching google and looking for results? Maybe searching the forum.

I found this simple result from searching : http://technet.microsoft.com/en-us/library/dd309586.aspx

NSSLTD

http://article.feedznow.com/how-to-make-an-online/1722353692.aspx, I hope this article will help you to gain more knowledge.

platinum8
Junior Poster
Banned
107 posts since Jul 2008
Reputation Points: 1
Solved Threads: 3
Skill Endorsements: 0

I don't think any native windows console commands support sockets. So making a multi-player game in batch is going to be impossible. I suppose it could be possible to create a file on a shared path on a network, then use batch to read the file and display the scores/etc of other players. But it would literally be easier to learn a real programming language.

skatamatic
Posting Shark
986 posts since Nov 2007
Reputation Points: 399
Solved Threads: 132
Skill Endorsements: 1

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.1014 seconds using 2.7MB