• Search
  • Register
  • Log in
  • Ace of Spades Game Forums » Off-Topic
  • Note: This forum is merely an archive. It is no longer possible to login or register. - StackOverflow
    New Ace of Spades Forums: http://buildandshoot.com/
  • NotePad | Coding | Help Needed
  •  

    _______________________________________________________________________

    OK first off i need some help with my coding because its not working correctly...

    Description of Coding

    Its Ment to replace the gun files and sounds for ace of spades, (Mod Installer)
    _____________________________________________________________________

    Pictures of errors

    First Problem - http://i.imgur.com/2ui6p.png

    Second Problem - http://i.imgur.com/6cu5o.png

    _____________________________________________________________________

    Coding Related to Problems

    First Problem - http://i.imgur.com/JLZuC.png (pause at bottom is to Be GOTO TOP)

    Second Problem - http://i.imgur.com/F5VIW.png
    _____________________________________________________________________

    Where are the files you may ask they are in the same folder as the batch File
    _____________________________________________________________________

    Download - http://www.mediafire.com/?8agrc7vetf6cv7a

    (ignore the B.exe and anything to do with B because its not finished)

    (B.exe is just a Compiled Version of B.bat)

    _____________________________________________________________________

    Please help :(

    #60813
    TWiiSt3D
    Soul_SnipeZ
    Posted 14 years ago
     

    No reply's really ????

    #60822
    TWiiSt3D
    Soul_SnipeZ
    Posted 14 years ago
     

    Where is B.bat?

    You should make backup before replacing files. Just in case.

    #60824
    Szuwar
    Member
    Posted 14 years ago
     

    this is how the folder is set out

    Folder1=installer

    inside folder1

    folder2 which is called A

    foler3 which is called B

    inside A theres a file call A.bat

    inside a theres also files for call A command

    in folder b theres a file called B.bat

    inside be theres also the files for call B command

    _____________________________________________________________________

    B CODE

    @echo
    COPY semishoot.wav C:\Ace of Spades\wav
    COPY gunreload.wav C:\Ace of Spades\wav
    COPY semi.png C:\Ace of Spades\png
    COPY semi.kv6 C:\Ace of Spades\kv6

    _____________________________________________________________________

    #60829
    TWiiSt3D
    Soul_SnipeZ
    Posted 14 years ago
     

    Any Help ???

    #60838
    TWiiSt3D
    Soul_SnipeZ
    Posted 14 years ago
     

    Go call StackOverflow. He should be over in the AoS IRC channel.

    #60839
    Spengbab
    Moron
    Posted 14 years ago
     

    ^thanks one of the guys on there said he would fix it for me :)

    Edit 1: Hes not helping me any more dont know why :( but can some one here help me ???

    Edit 2: Fixed the Thread so it can be understood easily now

    #60856
    TWiiSt3D
    Soul_SnipeZ
    Posted 14 years ago
     

    Just gotta be patient, is all.

    #60912
    Spengbab
    Moron
    Posted 14 years ago
     

    lol waiting is annoying :) i just want to get on with it and fix it :(

    #60929
    TWiiSt3D
    Soul_SnipeZ
    Posted 14 years ago
     

    If those scripts posted in first post are the newest version then this is what I've noticed:

    Installer.bat
    ;A
    ;B
    Should be
    :A
    :B
    A.bat, B.bat:
    Problem with your syntax around COPY might be caused by not putting path to AoS dir inside quotes. I guess this would work nicely:
    COPY smg.kv6 "C:\Ace of Spades\kv6"

    Haven't checked it because there is no Windows machine around but those are the things you should take care of.

    #60935
    Szuwar
    Member
    Posted 14 years ago
     

    il check thanks for your help :)

    i checked it you dident fix the first proplem but you fixed most of the second problem but it still is not copying all the files

    #60939
    TWiiSt3D
    Soul_SnipeZ
    Posted 14 years ago
     

    ok, send be all those files/folders, i might be able to fix em. (Love using command prompt :P)
    whoops nvm, to lazy to read XD

    #60964
    KwF_10se1ucgo_x
    Tennessee
    Posted 14 years ago
     

    ^the download is on the thread xD

    #60970
    TWiiSt3D
    Soul_SnipeZ
    Posted 14 years ago
     

    Ok, there is also problem with your if statement. You use variable named ABCDEFGHIJX, but you're checking variable named AB (you should be checking ABCDEFGHIJX).

    Replace Your set line with this:

    SET /p AB=

    And it should work.

    I don't really know what could be wrong with copying. Make sure the path is correct and if there is any output regarding those commands it would be useful to post it.

    #60976
    Szuwar
    Member
    Posted 14 years ago
     

    TA DA! Forgive me if you dont like what i did :P but it works and is now more efficient!
    http://uploadir.com/u/l8ror7
    (Tested on Windows XP Pro SP3)

    #60984
    KwF_10se1ucgo_x
    Tennessee
    Posted 14 years ago
     

    Heres the coding!
    _____________________________________________________________________
    Install.bat:
    _____________________________________________________________________
    :Main
    @echo off
    Title Installer
    color 0c
    echo Chose a Gun To Install... Use Help.txt
    set /p TYPE=
    if %type%==A goto :A
    if %type%==a goto :A
    if %type%==B goto :B
    if %type%==b goto :B
    if NOT %type%=="A" goto :wrong
    if NOT %type%=="a" goto :wrong
    if NOT %type%=="B" goto :wrong
    if NOT %type%=="b" goto :wrong
    CLS
    :A
    cd A
    call A.bat
    pause
    goto :Main
    :B
    cd B
    call B.bat
    pause
    goto top
    :wrong
    echo Sorry, that was an incorrect choice, please try again.
    echo Program will return to start
    pause
    cls
    goto :Main
    _____________________________________________________________________
    A.bat
    _____________________________________________________________________
    @echo off
    echo Pleas enter where ace of spades has been installed:
    set /p DIR=
    copy smgshoot.wav "%DIR%\wav"
    copy gunreload.wav "%DIR%\wav"
    copy smg.png "%DIR%\png"
    copy smg.kv6 "%DIR%\kv6"
    exit
    _____________________________________________________________________
    B.bat
    _____________________________________________________________________
    (Forgot to edit B.bat, just copy/paste the code of A.bat into B.bat)

    #60994
    KwF_10se1ucgo_x
    Tennessee
    Posted 14 years ago
     

    ^thanks are you in a clan cause id like some one like you to be in mine ???

    EDIT:Complete Fucking Legend :)

    #60998
    TWiiSt3D
    Soul_SnipeZ
    Posted 14 years ago
     

    sure! (the clan im in is dead now D:) so ill join

    #61001
    KwF_10se1ucgo_x
    Tennessee
    Posted 14 years ago
     

    http://ace-spades.com/forums/topic.php?id=4276&page=2

    clan thread

    what do you want your name to be ???

    #61004
    TWiiSt3D
    Soul_SnipeZ
    Posted 14 years ago
     

    10se1ucgo

    No. Bad boy. You are in the SLP server team.

    #61007
    Bobbunny
    Teh One Bunneh
    Posted 14 years ago
     

    ITS DEAD BRO. ITS DEAD. Without vesty, its dead

    #61009
    KwF_10se1ucgo_x
    Tennessee
    Posted 14 years ago
     

    Oh and Twissted, i suggest you get Notepad++ (It highlights coding Such as batch,C++,C#,Java, etc)

    #61016
    KwF_10se1ucgo_x
    Tennessee
    Posted 14 years ago
     

    thanks for all your help :)

    #61054
    TWiiSt3D
    Soul_SnipeZ
    Posted 14 years ago
    RSS feed for this topic  

    Reply

    You must log in to post.

  • Tags
  •  

  •  
    Ace of Spades Game Forums is proudly powered by bbPress.   //   Theme by Mike Lothar  
    [ Time : 0.462s | 13 Queries ]