You are here

Armagetron (Game)

13 posts / 0 new
Last post
CraZy675
Offline
Last seen: 18 years 4 months ago
Joined: 2006-01-11 15:41
Armagetron (Game)

Armagetron is a really fun Open Source game. We play 16 player on the School's LAN,
but we have to re-install everytime, it would be great if we could save our playernames, hot keys etc on our thumbdrives.
I don't think there is much (if any) programming needs to be done cause it already allows you to install to a thumbdrive.

Link:
http://armagetronad.net/

madscientist327
Offline
Last seen: 1 year 9 months ago
Joined: 2006-04-10 19:25
Awesome!

This would be awesome. May I also request a portable Armegetron kind sirs? Smile There definetly needs to be more portable games. Good and free ones especially.

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 week ago
Joined: 2006-01-06 21:27
Armagetron off a floppy.

"If you're not part of the solution, you're part of the precipitate."

madscientist327
Offline
Last seen: 1 year 9 months ago
Joined: 2006-04-10 19:25
Old...

Regretably that is around two years old... It's based off version 2.6 and it was designed for a floppy. (The quality of some stuff was decreased to fit on the floppy.) USB flash drives don't have that limit though. So... Any talented programmers willing to take on the challenge? Biggrin

madscientist327
Offline
Last seen: 1 year 9 months ago
Joined: 2006-04-10 19:25
I mean...

How hard could it be? If someone could put it on a floppy then a usb flash drive shouldn't be that hard...

dyce
Offline
Last seen: 17 years 2 months ago
Joined: 2006-04-10 23:12
im going to take a look into

im going to take a look into this. i made an extracted version of counter-strike 1.6 to work using batch files, i bet i can make this work. ill look into it soon.

EDIT:
i looked into the registry, and i am unable to find where armegetron saves its config. sorry guys.

-6GB 2.5" portable HDD (6gb cuz i haxored it out a old laptop)
-(2x) 128MB Custom Flash USB (dad sent me some)
-512MB Sandisk mini cruzer (won at a lan party)
6.768GB of portable fun

-6GB 2.5" portable HDD (6gb cuz i haxored it out a old laptop)
-(2x) 128MB Custom Flash USB (dad sent me some)
-512MB Sandisk mini cruzer (won at a lan party)
6.768GB of portable fun

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 week ago
Joined: 2006-01-06 21:27
Maybe it doesn't...

Or try running RegMon (http://sysinternals.com/) while running to see where it does.
----
R McCue

"If you're not part of the solution, you're part of the precipitate."

dyce
Offline
Last seen: 17 years 2 months ago
Joined: 2006-04-10 23:12
i tried out regmon,

i tried out regmon, armagetron saves it config common places such as HKLM/Hardware/DeviceMap/

it looks like the source code needs to be tweaked. possibly having it save settings to .../Software/Armagetron instead of a million of places.

-6GB 2.5" portable HDD (6gb cuz i haxored it out a old laptop)
-(2x) 128MB Custom Flash USB (dad sent me some)
-512MB Sandisk mini cruzer (won at a lan party)
6.768GB of portable fun

-6GB 2.5" portable HDD (6gb cuz i haxored it out a old laptop)
-(2x) 128MB Custom Flash USB (dad sent me some)
-512MB Sandisk mini cruzer (won at a lan party)
6.768GB of portable fun

Bruce Pascoe
Offline
Last seen: 12 years 9 months ago
Joined: 2006-01-15 16:14
...

HKLM\Hardware\DeviceMap?
What a place for a program to save its settings. That's just ASKING to crash the whole operating system.

madscientist327
Offline
Last seen: 1 year 9 months ago
Joined: 2006-04-10 19:25
So... Any luck guys?

So... Any luck guys?

PartyMon (not verified)
i tried it and it seemed to

i tried it and it seemed to work without any tweaks?

jbbdude
Offline
Last seen: 16 years 3 months ago
Joined: 2006-12-21 21:18
Been done... in french

This was done at http://www.framakey.org/Portables/PortableArmagetron
However, they used a French translation of the game

EDIT:
you can set the game to english mode

cthelight
Offline
Last seen: 16 years 12 months ago
Joined: 2006-12-05 13:13
code
!define DEFAULTEXE "armagetronad.exe" ;Nom de l'exécutable par défaut
!define DEFAULTAPPDIR "Armagetron Advanced" ;Répertoire par défaut de l'application
!define DEFAULTUSERPROFILE "Profile" ;Répertoire utilisateur par défaut

; Définition variables entête
!define NAME "PortableArmagetron" ;Nom du lanceur (forme abrégée)
!define FULLNAME "Portable Armagetron" ;Nom complet du lanceur
!define APP "Armagetron" ;Nom de l'application
!define VER "1.0.0.5" ;Version du lanceur
!define PROJECT "Framakey" ;Nom du projet
!define COMPANY "Framakey.org" ;Nom du groupe développant le projet
!define DEVELOP "sarkos, joshua" ;Noms des développeurs
!define WEBSITE "http://www.framakey.org" ;Site Internet

; ----------------------------------------------------
; Langues

  LoadLanguageFile "${NSISDIR}\Contrib\Language Files\French.nlf"

; ----------------------------------------------------
; Inclusion du fichier de lang du lanceur

  !include "PortableArmagetronLang_fr.nsh"

; ----------------------------------------------------
; Inclusion du fichier de fonctions et macros

  !include "FramakeyFunctions-0605.nsh"

; ----------------------------------------------------
; Informations de compilation

; Nom de l'exécutable
  Name "${NAME}"
; Etiquette
  Caption "${CAPTIONTEXT}"
; Icone
  Icon "${NAME}.ico"
  WindowIcon Off
; Nom du fichier à créer
  OutFile "${NAME}.exe"

; Runtime Switches
  SetDateSave on
  SetDatablockOptimize on
  CRCCheck On
  SilentInstall Silent
  AutoCloseWindow True

; ----------------------------------------------------
; Version Informations

  VIProductVersion "${VER}"
  VIAddVersionKey FileDescription "${FILEDESCRIPTIONTEXT}"
  VIAddVersionKey LegalTrademarks "${LEGALTRADEMARKSTEXT}"
  VIAddVersionKey LegalCopyright "${LEGALCOPYRIGHTTEXT}"
  VIAddVersionKey Comments "${COMMENTSTEXT}"
  VIAddVersionKey CompanyName "${COMPANY}"
  VIAddVersionKey OriginalFilename "${NAME}.exe"
  VIAddVersionKey FileVersion "${VER}"

; ----------------------------------------------------
; Variables

  Var IniPath
  Var AppDirectory
  Var AppExecutable
  Var UserProfileDir
  Var AdditionalParameters
  Var DisableSplashScreen
  Var ExecString

; ----------------------------------------------------
; Sections

Section "Main"

; Trouver le fichier INI, s'il y en a un
  IfFileExists "$EXEDIR\${NAME}.ini" "" CheckDataINI
    StrCpy "$IniPath" "$EXEDIR"
    Goto ReadINI

  CheckDataINI:
    IfFileExists "$EXEDIR\..\..\Data\AppsData\${NAME}\${NAME}.ini" "" NoINI
    StrCpy "$INIPATH" "$EXEDIR\..\..\Data\${NAME}\"
      Goto ReadINI

  ReadINI:
; Lit les paramètres du fichier INI
    ReadINIStr $0 "$IniPath\${NAME}.ini" "${NAME}" "${APP}Directory"
      StrCpy "$AppDirectory" "$EXEDIR\$0"

; Vérifie que les paramètres requis ci-dessus sont présents
    IfErrors NoINI

    ReadINIStr $0 "$IniPath\${NAME}.ini" "${NAME}" "AdditionalParameters"
      StrCpy "$AdditionalParameters" $0
    ReadINIStr $0 "$IniPath\${NAME}.ini" "${NAME}" "${APP}Executable"
      StrCpy "$AppExecutable" $0
    ReadINIStr $0 "$IniPath\${NAME}.ini" "${NAME}" "${APP}Profile"
      StrCpy "$UserProfileDir" $0
    ReadINIStr $0 "$IniPath\${NAME}.ini" "SplashScreen" "DisableSplashScreen"
      StrCpy "$DisableSplashScreen" $0

; Pour n'importe quelle paramètre du fichier INI non requis contenant une chaine vide, ignorer les erreurs associées
    ClearErrors

; Correct PROGRAMEXECUTABLE si paramètre vide
    StrCmp $AppExecutable "" "" EndINI
    StrCpy "$AppExecutable" "${DEFAULTEXE}"
    Goto EndINI

  NoINI:
; Pas de fichier INI, nous utiliserons les paramètres par défaut
    StrCpy "$AdditionalParameters" ""
    StrCpy "$AppExecutable" "${DEFAULTEXE}"
    StrCpy "$UserProfileDir" "${DEFAULTUSERPROFILE}"
    StrCpy "$DisableSplashScreen" "false"

    IfFileExists "$EXEDIR\${DEFAULTAPPDIR}\${DEFAULTEXE}" "" NoProgramEXE
      StrCpy "$AppDirectory" "$EXEDIR\${DEFAULTAPPDIR}"

  EndINI:
    IfFileExists "$AppDirectory\$AppExecutable" FoundProgramEXE

  NoProgramEXE:
; Si le chemin pointant vers l'exécutable est invalide
    MessageBox MB_OK|MB_ICONEXCLAMATION `${NOEXEMSG}`
    Abort

  FoundProgramEXE:
    !insertmacro FindProcess $AppExecutable
    StrCmp $DisableSplashScreen "true" GetAppParameters
; Affiche le splash screen
    InitPluginsDir
    !insertmacro SplashInit "ipicsplash" "${NAME}_splash.jpg" ""

; Check des paramètres
  GetAppParameters:
    Call GetParameters
    Pop $0

; Routine si pas de paramètres
  StrCmp "'$0'" "''" "" ExecWithParameters
  StrCpy $ExecString `"$AppDirectory\$AppExecutable"`
  Goto AdditionalParameters

; Routine si paramètres
  ExecWithParameters:
    StrCpy $ExecString `"$AppDirectory\$AppExecutable" $0`
    Goto ExecApp

  AdditionalParameters:
    StrCmp $AdditionalParameters "" ProfileEnvironment

; Additional Parameters
    StrCpy $ExecString `$ExecString $AdditionalParameters`

; Fake home directory
  ProfileEnvironment:
; Set the %USERPROFILE% directory if we have a path
    StrCmp $UserProfileDir "" NoProfile
    IfFileExists "$EXEDIR\$UserProfileDir\*.*" "" NoProfile
      System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("USERPROFILE", "$EXEDIR\$UserProfileDir").r0'
      Goto ExecApp

; Si profil introuvable
  NoProfile:
    MessageBox MB_OK|MB_ICONEXCLAMATION `${NOPROFILEMSG}`
    Abort

; Lancement application
  ExecApp:
    Exec "$ExecString"

SectionEnd

Section .onInit
  Call Mutex
SectionEnd

; -------------------------------------------
; Fin du script

[Moderator RM note: Please use <pre> around code blocks. I have fixed for you]

Signature automatically removed for containing links

Topic locked