Logo

CS.RIN.RU - Steam Underground Community

Cool members bookmark the index page.
It is currently Wednesday, 15 Aug 2018, 14:16

English | Русский




Reply to topic  [ 15 posts ] 
Author Message

Post Post subject: How to Create a Portable Standalone.   
Posted: Saturday, 10 Apr 2010, 02:36   Reply with quote
Advanced forumer Завсегдатай
User avatar
Joined: Friday, 08 Jan 2010, 01:06
Posts: 73
How To Create a Portable Standalone.

For this tutorial I will use Counter-Strike Distorted as example.
In order to create a portable standalone, you need a working standalone to start with to create one go to viewtopic.php?f=30&t=54888. This standalone should not use game cache files or no cache files, and must have a crack. For dls for this Tutorial look at attachments.
In your standalone delete all maps and sounds and models and textures that you don't want/need, it will make it smaller the more you delete.
Test your standalone after this to make sure it works.

Counter-strike Distorted is the example.
Compress you standalone with 7zip.
Here I am going to be using this format to show where files are
  1. Portablestandalone\cs.bat
  2. Portablestandalone\cs.exe
  3. Portablestandalone\ Counter-Strike Distorted\ Counter-Strike Distorted.7z
  4. Portablestandalone\ Counter-Strike Distorted\ zipp.exe
  5. Portablestandalone\ Counter-Strike Distorted\ Counter-Strike Distorted.7z\ Counter-Strike Distorted\hl.exe
  6. Portablestandalone\completecs.exe

Notice how the Counter-Strike Distorted\hl.exe is in the compressed 7z.

Now write a batch file, using my example.
In my cs.bat I put
  1. @echo off
  2. :start
  3. Title Counter-Strike Distorted
  4. cd Counter-Strike Distorted
  5.  zipp.exe x -bd -y "Counter-Strike Distorted.7z"
  6. cd Counter-Strike Distorted
  7. hl.exe -steam -game cstrike -noforcemspd -noforcemparms -noforcemaccel


For your batch file
Replace
  1. Title Counter-Strike Distorted with Title nameofyour7zipfile
  2. cd Counter-Strike Distorted with the name of your folder where your 7zip and zipp.exe is
  3.  zipp.exe x -bd -y "Counter-Strike Distorted.7z" with  zipp.exe x -bd -y "nameofyour.7z"
  4. hl.exe -steam -game cstrike -noforcemspd -noforcemparms -noforcemaccel with
  5. exename.exe parameters needed.

hl.exe needed those parameters to run. I don't know what parameters are needed to run your game.
Now test your file and see if your game comes up, if not check if you did everything like me.
If it works continue.

Convert your batch file to an exe with any free tool online, use google. cs.exe was made from cs.bat.

Open winrar and go inside your Portablestandalone folder. Select cs.exe and Counter-Strike Distorted folder and add them to an archive, here I am naming it completecs. Set these options before you compress. Set it to SFX archive and go to advanced and then to SFX options. Under General set it to run cs.exe after extraction. Under Modes set it to unpack to a temporary folder. Hit OK. Go to the files tab and add cs.exe to files to add. Now hit okay and let it create completecs.exe.
If all goes will you now have a portable standalone to upload and play. Test and run it first to make sure it plays and extracts to temp dirs. cscomplete.exe is the only file you need now to play cs distorted.


You do not have the required permissions to view the files attached to this post.


Last edited by hayesgav on Monday, 14 Jun 2010, 21:12, edited 1 time in total.

Top
 Profile  

Post Post subject: Re: How to Create a Portable Standalone.   
Posted: Saturday, 10 Apr 2010, 08:01   Reply with quote
I live here Три раза сломал клаву :)
User avatar
Joined: Saturday, 31 May 2008, 07:58
Posts: 2206
Location: Somewhere beyond the sea
Few things
In cs.bat if you use "start" i think it was to start the game, the command prompt window will end.
Believe it or not, 7zip does have a command line version and :D
Is there really a point in compressing it two times?

_________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Top
 Profile  

Post Post subject: Re: How to Create a Portable Standalone.   
Posted: Tuesday, 18 May 2010, 00:06   Reply with quote
Advanced forumer Завсегдатай
User avatar
Joined: Friday, 08 Jan 2010, 01:06
Posts: 73
Let me clarify what each of the files do.
cs.bat is the same as cs.exe, but in exe format.
cscomplete.exe decompresses cs.exe and Counter-Strike Distorted 7zip. When its done, it runs cs.exe.
cs.exe runs the zipp.exe that extracts the 7zip. cs.exe then runs hl.exe running Counter-Strike Distorted.
The cmd window doesn't end until zipp.exe is run and hl.exe is run. I'm pretty sure this method works. I learned this method from the portablesteamgames forums before they closed. If you want to test it go ahead. ::)

Double compression helps alot I took a version of L4D from December, and using this method got it down to 1 gb.

Yes, I believe zipp.exe is command line version of 7zip. ::D


Top
 Profile  

Post Post subject: Re: How to Create a Portable Standalone.   
Posted: Monday, 07 Jun 2010, 22:26   Reply with quote
Beginner Без звания
Joined: Tuesday, 25 May 2010, 17:11
Posts: 7
I can't get this to work.

here is my .bat maybe you can tell me what I have done wrong.

@echo off
:start
Title Star wars republic commando
cd SWRC portable\star wars republic commando
zipp.exe x -bd -y "Star wars republic commando.7z"
cd SWRC portable\star wars republic commando
Star wars republic commando standalone.7z\Star wars republic commando standalone\revloader.exe -steam -game star wars republic commando -noforcemspd -noforcemparms -noforcemaccel

and here is a screen of my folder structure.

thanks for the help in advance!


You do not have the required permissions to view the files attached to this post.


Top
 Profile  

Post Post subject: Re: How to Create a Portable Standalone.   
Posted: Saturday, 12 Jun 2010, 17:27   Reply with quote
Advanced forumer Завсегдатай
User avatar
Joined: Friday, 08 Jan 2010, 01:06
Posts: 73
Shadowraith here's a possible solution.
Mark sure the archive is in 7zip.
[[Please login to see this link.]]
the archive name should not have .7z in it, its the extension. If you do it write you should see a 7zip icon and the name should say Star wars republic commando.
Then your batchfile to the SWRC portable folder
edit your batch file to this
  1.  
  2. @echo off
  3. :start
  4. Title Star wars republic commando
  5. cd star wars republic commando
  6. zipp.exe x -bd -y "Star wars republic commando.7z"
  7. cd star wars republic commando standalone
  8. revloader.exe -steam -game star wars republic commando -noforcemspd -noforcemparms -noforcemaccel

Tip don't use spaces in file name. ::D
Once compressed with 7zip show me a screenshot of your 7zip archive.
I hope this woorks ::D


Top
 Profile  

Post Post subject: Re: How to Create a Portable Standalone.   
Posted: Sunday, 13 Jun 2010, 23:54   Reply with quote
Beginner Без звания
Joined: Tuesday, 25 May 2010, 17:11
Posts: 7
ok, well for one thing, I had the name of my 7z wrong... :laughing: retarded error. so i got the batch file to run, but it starts extracting it into another folder for permanent not temp. it comes up with:
"processing archive: star wars republic commando standalone.7z"
"extracting blah blah"
"extracting blah blah"
and then those files show up in a different folder in the folder of my .7z

So i am going to go ahead and follow the rest of the steps now, but any ideas in the meantime?

-Edit- I compiled everything, but it said it could not run the revloader.exe with all the parameters. oh well. This takes forever to decompress anyways, I think I would rather stick with the un 7z folder. thanks for the wonderful tut though. at least i had some success. I just think it was the parameters -steam -game star wars republic commando and stuff. it needs to launch just revloader. thanks again though.


Top
 Profile  

Post Post subject: Re: How to Create a Portable Standalone.   
Posted: Monday, 14 Jun 2010, 21:10   Reply with quote
Advanced forumer Завсегдатай
User avatar
Joined: Friday, 08 Jan 2010, 01:06
Posts: 73
You need to finish the process having the winrar sfx archive. Once you set the winrar to extract the archive to temp the 7zip will decompile there. The "cs.bat" doesn't tell it to extract to temp, win rar does. I'm sorry I was unclear in your launch parameters. All you need to do is change them to whatever parameters work for your exe. I needed those parameters to get counter-strike to run. I'll edit the tut under replace to use whatever your exe is with needed launch parameters. Just edit your batch to say whatever parameters work with revloader. You should test revloader without any compression with the needed parametes before you compress. You should have only needed to compress the 7zip once. Now give the winrar a try and it should work completely and you'll have a single exe to run your game.


Top
 Profile  

Post Post subject: Re: How to Create a Portable Standalone.   
Posted: Monday, 14 Jun 2010, 21:34   Reply with quote
I live here Три раза сломал клаву :)
User avatar
Joined: Sunday, 02 Aug 2009, 18:57
Posts: 2109
Location: Bulgaria
Did I mention that for occasions such as these where compression is everything,FreeARC is 10 times better than 7zip.7zip is for home uses or just a faster upload and skipping one or two archive parts.

_________________
[[Please login to see this link.]]

Handy links ;)
  • Use [[Please login to see this link.]] to automatically download stuff from Rapidshare and other file hosts. | (NOTE:Requires Java Runtime)
  • [[Please login to see this link.]]
Random quotes
hegyak wrote:
We evolved from smart users with dumb terminals to dumb users with smart terminals.
^ This man speaks the truth.

Random user don't let it be you wrote:
Sorry for my bad English
Nearly all of us don't have English as a native language,so we can't bother you for that!
If you really doubt your English,go here and ask in your OWN language!


Random user wrote:
What's teh password p|0X?
99% of the stuff here has the password cs.rin.ru


Top
 Profile  

Post Post subject: Re: How to Create a Portable Standalone.   
Posted: Monday, 14 Jun 2010, 23:16   Reply with quote
Advanced forumer Завсегдатай
User avatar
Joined: Friday, 08 Jan 2010, 01:06
Posts: 73
I've never used FreeARC. I'll try it in the future and if it works. If it works well I'll add it to my guide. It would be great to create smaller files or decompress faster.


Top
 Profile  

Post Post subject: Re: How to Create a Portable Standalone.   
Posted: Wednesday, 16 Jun 2010, 20:33   Reply with quote
Beginner Без звания
Joined: Wednesday, 16 Jun 2010, 19:30
Posts: 1
Hey guys, this is my first post here! :D
Have a look at [[Please login to see this link.]], I've used it before on portable programs and it works very well. It may remove ALOT of work so I'll try when I have time.


Top
 Profile  

Post Post subject: Re: How to Create a Portable Standalone.   
Posted: Tuesday, 22 Feb 2011, 17:19   Reply with quote
Beginner Без звания
Joined: Tuesday, 22 Feb 2011, 17:04
Posts: 18
Soooo.... This works on CS:S as well I assume?

I was thinking of making css redux for usage on school computers


Top
 Profile  

Post Post subject: Re: How to Create a Portable Standalone.   
Posted: Tuesday, 05 Apr 2011, 01:35   Reply with quote
Advanced forumer Завсегдатай
User avatar
Joined: Friday, 08 Jan 2010, 01:06
Posts: 73
531398 wrote:
Soooo.... This works on CS:S as well I assume?

I was thinking of making css redux for usage on school computers

Yes it works on CSS. Sorry for late.


Top
 Profile  

Post Post subject: Re: How to Create a Portable Standalone.   
Posted: Thursday, 21 Apr 2011, 14:27   Reply with quote
Super flooder Почетный графоман
User avatar
Joined: Sunday, 14 Nov 2010, 10:50
Posts: 671
Location: South Africa
Good tutorial thanks


Top
 Profile  

Post Post subject: Re: How to Create a Portable Standalone.   
Posted: Wednesday, 15 May 2013, 03:07   Reply with quote
Advanced forumer Завсегдатай
Joined: Monday, 20 Apr 2009, 02:55
Posts: 53
hayesgav wrote:
531398 wrote:
Soooo.... This works on CS:S as well I assume?

I was thinking of making css redux for usage on school computers

Yes it works on CSS. Sorry for late.


This does not work anymore as revloader requires administration rights. Schools don't give administration rights to their students.

_________________
...


Top
 Profile  

Post Post subject: Re: How to Create a Portable Standalone.   
Posted: Sunday, 09 Jun 2013, 18:30   Reply with quote
Advanced forumer Завсегдатай
User avatar
Joined: Friday, 08 Jan 2010, 01:06
Posts: 73
steamtester wrote:
hayesgav wrote:
531398 wrote:
Soooo.... This works on CS:S as well I assume?

I was thinking of making css redux for usage on school computers

Yes it works on CSS. Sorry for late.


This does not work anymore as revloader requires administration rights. Schools don't give administration rights to their students.

Maybe use a different emu other than revloader, maybe luma emu doesn't need admin. Anyways, I need to rewrite this article sometime with more up to date info.


Top
 Profile  
Display posts from previous:  Sort by  
Reply to topic  [ 15 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum




Powered by phpBB® Forum Software © phpBB Group