Jump to content

Sashi

Members
  • Content Count

    16
  • Joined

  • Last visited

Posts posted by Sashi


  1. 7 hours ago, Dastgir said:

    1) The webserver is on linux, that means case sensitive "test != Test"

    2) Your main.ini points to other url "http://hltracker.com/RO/patch/"

    That's thats reminants of me playing around and trial and error last night after posting, I was trying to figure out if i can just connect to the old location for now (hltracker) that actually works and update it to the new location later, I can't get the patcher to overwrite the conf file, now that its no longer embedded.

     it doesn't work even if I copy and paste out directly out of my browser (hltracker is my old location on a friends local server that I'm trying to move away from)


  2. I've migrated my Thor to and off my local server but im struggling to get it to connect to it, im guessing at this point its something to do with the web-host its self since its one of those shared environment scenarios a friend of mine runs www.vinsicksolutions.com. I've tried everything from sub domains with different permissions to FTP and i get nothing but it'll connect to my Apache serv (in a different network and location) just fine.

    it hangs on "Attempt to connect patch server" every time
    i can get the Notice.HTML fine

    Config Ini

    Quote

    [Config:Main]

    RootURL='patch.sanctuaryRO.com'

    RemoteConfigFile='main.ini'

    TimeOut=0

    StatusFile='sanct.dat'

    DefaultGRF='sanc.grf'

    ClientEXE='sanctuaryRO.exe'
    ClientParameter='-1sak1'

    //When patcher unable to connect webserver,
    //should the patcher allow player start the game anyways?
    FinishOnConnectionFailure=false

    [Config:Window]

    Style='none'

    //This allows the player drag the window by background
    DragHandling=true

    //Background can be either jpg or bmp, in later case
    //the top-left pixel is chosen as transparent color.
    Background='images/Launcher.bmp'

    FadeOnDrag=true

    [Config:BGM]
    File=''

    Loop=true

    Volume=5

    Directory=

    [Config:Misc]
    Title='Sanctuary RO Patcher'

    HideProgressBarWhenFinish=false


    [ProgressBar:bar1]
    Width=684
    Height=16

    Left=55
    Top=625

    FrontImage='images/loading bar 1.jpg'
    BackImage='images/loading bar 2.jpg'

    Hook='ProgressChange'

    [Label:Status]
    AutoResize = True

    Width=
    Height=

    Left=407
    Top=627
    Alignment='center'

    FontColor=$000000
    FontName = 'Trebuchet MS'
    FontSize = '12'

    Text=''

    Hook='StatusChange'

    [NoticeBox:Box0]
    Width=346
    Height=525
    Left=64
    Top=238
    URL='patch.sanctuaryro.com/notice.html'

    [Button:Start]
    Default='images/start.jpg'
    OnDown='images/start2.jpg'

    Left=474
    Top=547

    //Hook is used for default buttons,
    //do not use this on custom buttons!
    Hook='Start'

    [Button:Exit]
    Default='images/exit.jpg'
    OnDown='images/exit.jpg'

    Left=897
    Top=33

    Hook='Exit'

    [Button:Register]
    Default='images/register.jpg'
    OnDown='images/register2.jpg'
    Left=434
    Top=224
    Mode=1
    Action='http://ro.bnet.cc/'

    [Button:fourums]
    Default='images/forums.jpg'
    OnDown='images/fourms2.jpg'
    Left=434
    Top=288
    Mode=1
    Action='http://bnet.cc/'

    [Button:Website]
    Default='images/Website.jpg'
    OnDown='images/Website2.jpg'
    Left=434
    Top=350
    Mode=1
    Action='http://sanctuaryRO.com'

    [Button:Vote]
    Default='images/vote.jpg'
    OnDown='images/vote2.jpg'
    Left=434
    Top=422
    Mode=1
    Action='http://sanctuaryRO.com'

    //[Button:Extra]
    //
    //
    //
    // Mode - mode for button
    // 1 = open URL
    // 2 = Launch file/program
    // 3 = Message box
    //Mode=
    // Action - depend on what you set in the Mod, this may vary
    // ex. Mode = 1 , Action='http://google.com'
    //Action=
     

    Main.InI

    Quote

    //Thor Patcher remote config file
    [Main]
    //Allow patching or not?
    allow=true

    //Should patcher ignore everything else and finish patch immediately?
    Force_Start=false

    //if not, what message should appear?
    policy_msg=Server is taking a nap.

    //file_url - patch files should ALL put here.
    // This config entry will override the one in embed config.
    // o HTTP:
    //         http://domain.com/dir/
    // o FTP:
    //         ftp://domain.com/dir/
    //     o With <Username> [Password] [Port]
    //    ftp://username:[email protected]:port/dir/
    //     o Note: username is required if want put password, otherwise everything is optional.
    file_url=http://patch.sanctuaryro.com/data
    [Patch]
    //use CheckSum tool, hash for client & patcher
    // used to make sure exe is up to date
    //  (leave empty to disable this feature)
    ClientSum=
    PatcherSum=


    //This is compressed file for patcher & client update
    // To make these work, ClientSum and/or PatcherSum can't be empty
    // Note: these files should put same place as patch file (file_url in internal config)
    //Relative address, not FULL URL!
    ClientPath=
    PatcherPath=

    // Patch list file
    PatchList=plist.txt

    [Stars]
    // Shining o.O (Anyways, its for start button clones)
    // Since orignal client has check sum.. why not for clones? XD


    //How many? (it should same as amount of start button clone, but of course it's your choice)
    clients=0

    // _sum - checksum, use CheckSum tool.
    //client1_sum=
    // _Name - Filename of exe
    //client1_Name=
    // _Path - Path for file [Compressed]
    //client1_Path=

    [Misc]
    //Set a limit for fragment, when reach this limit, patcher will ask user to defrag
    FragmentLimit=50

    Tried Sourceforge too... No dice

    https://svn.code.sf.net/p/sanctuaryro/svn/patcher/
    Sourceforge config

    Quote

    [Config:Main]

    RootURL=' 'https://svn.code.sf.net/p/sanctuaryro/svn/patcher/'

    RemoteConfigFile='main.ini'

    TimeOut=0

    StatusFile='sanct.dat'

    DefaultGRF='sanc.grf'

    ClientEXE='sanctuaryRO.exe'
    ClientParameter='-1sak1'

    //When patcher unable to connect webserver,
    //should the patcher allow player start the game anyways?
    FinishOnConnectionFailure=false

    [Config:Window]

    Style='none'

    //This allows the player drag the window by background
    DragHandling=true

    //Background can be either jpg or bmp, in later case
    //the top-left pixel is chosen as transparent color.
    Background='images/Launcher.bmp'

    FadeOnDrag=true

    [Config:BGM]
    File=''

    Loop=true

    Volume=5

    Directory=

    [Config:Misc]
    Title='Sanctuary RO Patcher'

    HideProgressBarWhenFinish=false


    [ProgressBar:bar1]
    Width=684
    Height=16

    Left=55
    Top=625

    FrontImage='images/loading bar 1.jpg'
    BackImage='images/loading bar 2.jpg'

    Hook='ProgressChange'

    [Label:Status]
    AutoResize = True

    Width=
    Height=

    Left=407
    Top=627
    Alignment='center'

    FontColor=$000000
    FontName = 'Trebuchet MS'
    FontSize = '12'

    Text=''

    Hook='StatusChange'

    [NoticeBox:Box0]
    Width=346
    Height=525
    Left=64
    Top=238
    URL='https://svn.code.sf.net/p/sanctuaryro/svn/patcher/notice.html'

    [Button:Start]
    Default='images/start.jpg'
    OnDown='images/start2.jpg'

    Left=474
    Top=547

    //Hook is used for default buttons,
    //do not use this on custom buttons!
    Hook='Start'

    [Button:Exit]
    Default='images/exit.jpg'
    OnDown='images/exit.jpg'

    Left=897
    Top=33

    Hook='Exit'

    [Button:Register]
    Default='images/register.jpg'
    OnDown='images/register2.jpg'
    Left=434
    Top=224
    Mode=1
    Action='http://ro.bnet.cc/'

    [Button:fourums]
    Default='images/forums.jpg'
    OnDown='images/fourms2.jpg'
    Left=434
    Top=288
    Mode=1
    Action='http://bnet.cc/'

    [Button:Website]
    Default='images/Website.jpg'
    OnDown='images/Website2.jpg'
    Left=434
    Top=350
    Mode=1
    Action='http://sanctuaryRO.com'

    [Button:Vote]
    Default='images/vote.jpg'
    OnDown='images/vote2.jpg'
    Left=434
    Top=422
    Mode=1
    Action='http://sanctuaryRO.com'

    //[Button:Extra]
    //
    //
    //
    // Mode - mode for button
    // 1 = open URL
    // 2 = Launch file/program
    // 3 = Message box
    //Mode=
    // Action - depend on what you set in the Mod, this may vary
    // ex. Mode = 1 , Action='http://google.com'
    //Action=
     


     


  3. On 5/30/2018 at 2:21 AM, AnnieRuru said:

    I admit its cool idea, reminds me the card trader event I made long time ago
    http://herc.ws/board/topic/11367-card-collector/

    the problem is your script, and you should be glad you have posted on the board
    let me simplify it ...

    
    prontera,155,185,4	script	Card Shredder	2_VENDING_MACHINE1,{
    	mes "[ Card Shredder ]";
    	mes "You can shred cards to earn premium currency";
    	mes "would you like to shred any cards? ";
    	next;
    	if ( select ( "Yes.", "No" ) == 2 ) close;
    	mes "[ Card Shredder ]";
    	mes "Please select the card you wish to shred.";
    	getinventorylist;
    	for ( .@i = 0; .@i < @inventorylist_count; ++.@i ) {
    		if ( getiteminfo( @inventorylist_id[.@i], ITEMINFO_TYPE ) == 6 ) {
    			.@menu$ += getitemname( @inventorylist_id[.@i] ) +" "+ callsub( L_Coins, @inventorylist_id[.@i] ) +" Coins:";
    			.@cardid[.@c++] = @inventorylist_id[.@i];
    		}
    	}
    	.@menu$ += "No Card - Close";
    	next;
    	.@s = select( .@menu$ ) -1;
    	if ( .@s == .@c ) close;
    	mes "[ Card Shredder ]";
    	mes "are you sure you want to shred a "+ getitemname( .@cardid[.@s] ) +" for "+ callsub( L_Coins, .@cardid[.@s] ) +" coins ?";
    	next;	
    	if ( select ( "Yes.", "No" ) == 2 ) close;
    	delitem .@cardid[.@s], 1;
    	getitem Poring_Coin, callsub( L_Coins, .@cardid[.@s] );
    	++$cardid_shredded[ .@cardid[.@s] ];
    	close;
    L_Coins:
    	if ( $cardid_shredded[ getarg(0) ] < 5 )
    		return 5;
    	else if ( $cardid_shredded[ getarg(0) ] < 10 )
    		return 4;
    	else if ( $cardid_shredded[ getarg(0) ] < 15 )
    		return 3;
    	else if ( $cardid_shredded[ getarg(0) ] < 20 )
    		return 2;
    	else 
    		return 1;
    }

    I made it in a way without using 2 permanent variables
    also found a bug though ... line 713

    
    if (.@cardval < 1) set cardval,10; if (.@menu == 454) close;

    why do you set a permanent player variable ... there ?

     


    and about the issue about having too many cards in the menu, can be done with page system
    https://rathena.org/board/topic/74630-help-array/

    To be honest i did it the way i knew how, I've not scripted since 2005 and i've forgotten more then i can remember thank you so much for simplifying this is awesome

    And that line, i had an issue of it displaying the proper amount of coins to be dispensed if a card had never been traded that was me trying to bumble my way through that problem at least i think thats what that one was for, i had to take a few weeks away from RO stuffs due to Army obligations and i forget again what i was doing and have to relearn.... again

    the idea is after enough cards have been traded values should eventually reflect availability and viability fairly accurately, if their rarer or have a better use being equipped you get more of that currency for that particular card. diversifying card values as a whole, and giving some value to otherwise useless cards especially rare ones. i've also considered a quest or server wide objective to reset this scale something to implement in the future. as your population increases you can also adjust the intensity of the scale too for different kinds of effects. at the end of the day this may also provide a real nice card RANK (reflecting both value in the form of rarity and viability) after enough data has been collected that may be useful to someone out there

    i also have a coin sink... because every currency needs one... my Reset NPC scales the zeny price every time its used OR you can use some of these coins instead of zeny. not allowing an exchange for say... cash shop currency and its only use in the beginning is that reset NPC the hope is it will balance out in a fair way when enough time has passed

     

    i have a fondness for global permanent values with server wide impacts

     

    Quote

    Is it possible to make another menu which is the MVP Cards = 10 Poring Coins? This is for high rate servers :D

    if you roam the DB and find the item numbers for the MVP cards yes absolutely, i considered setting a fixed rate for MVP cards also that was significantly higher then the rest, and its something i might do later. what was written took a few days it was enough work at the time on my lower rate server this will not be a huge issue  since MVP Cards will almost never touch this NPC i decided it didn't warrant the extra work at the time of collecting the item numbers for the MVPs and adding that functionality to the script since the diminishing return effect would take a significant amount of time before it effects an MVP card on my server  (MVP card drops are the stock 0.01% on my server) 


  4. i wrote this NPC for my server Sanctuary RO, with the intention of sharing since it took a lot of work to write i wanted to let other people use the same NPC or be able to edit it or take snippets from it to use in their own creations

    i'm designing the server economy to depend on cards so i wrote an NPC that will dispense coins every time a card is traded baised on how often that card is traded in by the whole server

    note that item 9204 is a custom item on my server and it will probably need to be changed 

    there may have been easier or cleaner ways to write this NPC but it absolutely works, the only issue is if you have too many cards in your inventory the menu wont display them all but it requires a lot to hit that point

     

     

    cardshredder.txt


  5. Well, is there an easy way to switch to sql dbs at this point lol like a plug-in because it would be easy to push as a querries 

     

    Ideally I'd love for it to adjust the drop rate scale able by level but that's a perfect world 


  6. 6 hours ago, Rebel said:

    have you tried loging in with a new account with no characters yet?

    Just tried to do that and it crashed in the same place in the same way

    3 hours ago, Myriad said:

    Have you set PACKETVER in src/common/mmo.h to match the client version your are using?

    Sure have


  7. game client happens imeadatly after login, if i debug i get the following

    Unhandled exception at 0x775026A5 (ntdll.dll) in 2014-10-22bRagexe_patched.exe: Stack cookie instrumentation code detected a stack-based buffer overrun. occurred

    i've tried a few different client options and i still get this error anyone have any advice''

     

    i just figured out it crashes when i try to use a DNS address in the Clientinfo i still dont know how to properly fix this 


  8. What are the differences between the ragZero RagEXE and ragRE when it come to using it with Herc.

    i made the assumption that on a PRE server i should be using a Ragexe not a ragRE but i'm finding out that i might be wrong about that. and then we add the enigma of zero (ive been out of the sceen since around 2010 so this is all very new to me)

    the other question 
    Whats currently the confirmed stable versions that can be patched properly with secrets nemo (Unless theres some other better fork i dont know about yet)

    Believe me when i tell you ive googled my self into a corner, there is so much outdated info and guides on these forums i have no idea what to believe and im frankly getting tired of that answer for every question i ask 

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.