Core Success Rate Randomizer (Hourly)

Results 1 to 13 of 13
  1. #1
    Member Deco_Boss is offline
    MemberRank
    May 2008 Join Date
    Enschede, NLLocation
    93Posts

    Core Success Rate Randomizer (Hourly)

    Dear all,

    [info]Decided to make this because I was bored and I wanted this implemented on our own server. I have expanded on what we ourselves now use and what others *could* use, namely the files for "Static Rates" people (see the link in my sig to actually upgrade to floating rates, you -bleep-s ;)). Remember, since EGCabal is going to run 2 servers, these are all configged for 2 Servers. If you want to make this work for 1 server or change codes or whatever, these lines are free for everyone, since you all could have made this anyway X.x[/info]

    v1.0 will just consist of one "1constant parallel" fileset (don't bother with that, just know it's not at all complete), will update when not so busy ;).

    Floating Rates (2Server config, see sig) info:
    Spoiler:

    This should be in your Const.cfg in /etc/cabal/templates, replacing what is already there (the last table):
    Spoiler:
    Code:
    [UpgradeCore]	Grade_Value	E_Default	Enhance
    0	1	d11	d12
    1	2	d21	d22
    2	3	d31	d32
    3	4	d41	d42
    4	5	d51	d52
    5	6	d61	d62
    6	7	d71	d72

    Open up your Floating_Rates_Daemon.sh in /home/cabal/daemons with Notepad or something similar. Add the following to the file:
    Spoiler:

    At the top, add this after the "use_log=" line
    Code:
    logfile2=/var/log/cabal/Core_Rates2.log
    use_log2=1
    Put this under the configs for the other Rates:
    Code:
    #Server 1:
    
    #Normal:
    
    #Grade 1 - min
    b111=100
    #Grade 1 - max
    b112=100
    #Grade 2 - min
    b121=100
    #Grade 2 - max
    b122=100
    #Grade 3 - min
    b131=52.5
    #Grade 3 - max
    b132=52.5
    #Grade 4 - min
    b141=41.25
    #Grade 4 - max
    b142=41.25
    #Grade 5 - min
    b151=30
    #Grade 5 - max
    b152=30
    #Grade 6 - min
    b161=18.75
    #Grade 6 - max
    b162=18.75
    #Grade 7 - min
    b171=8
    #Grade 7 - max
    b172=8
    
    #Enhanced:
    
    #Grade 1 - min
    c111=100
    #Grade 1 - max
    c112=100
    #Grade 2 - min
    c121=100
    #Grade 2 - max
    c122=100
    #Grade 3 - min
    c131=100
    #Grade 3 - max
    c132=100
    #Grade 4 - min
    c141=100
    #Grade 4 - max
    c142=100
    #Grade 5 - min
    c151=60
    #Grade 5 - max
    c152=60
    #Grade 6 - min
    c161=30
    #Grade 6 - max
    c162=30
    #Grade 7 - min
    c171=15
    #Grade 7 - max
    c172=15
    
    #Server 2:
    
    #Normal:
    
    #Grade 1 - min
    b211=100
    #Grade 1 - max
    b212=100
    #Grade 2 - min
    b221=100
    #Grade 2 - max
    b222=100
    #Grade 3 - min
    b231=52.5
    #Grade 3 - max
    b232=52.5
    #Grade 4 - min
    b241=41.25
    #Grade 4 - max
    b242=41.25
    #Grade 5 - min
    b251=30
    #Grade 5 - max
    b252=30
    #Grade 6 - min
    b261=18.75
    #Grade 6 - max
    b262=18.75
    #Grade 7 - min
    b271=8
    #Grade 7 - max
    b272=8
    
    #Enhanced:
    
    #Grade 1 - min
    c211=100
    #Grade 1 - max
    c212=100
    #Grade 2 - min
    c221=100
    #Grade 2 - max
    c222=100
    #Grade 3 - min
    c231=100
    #Grade 3 - max
    c232=100
    #Grade 4 - min
    c241=100
    #Grade 4 - max
    c242=100
    #Grade 5 - min
    c251=60
    #Grade 5 - max
    c252=60
    #Grade 6 - min
    c261=30
    #Grade 6 - max
    c262=30
    #Grade 7 - min
    c271=15
    #Grade 7 - max
    c272=15
    Put this just before the "sed /etc/cabal/templates/Const.cfg \" for the Server one part (so not at the end of the file - somewhere in the middle)
    Code:
    e1=1
    e2=2
    e3=1000
    while [ $e1 -le $e2 ]; do
      e1=$RANDOM
      let "e1 %= $e3"
    done
    fi
    
    f11=(($b112-$b111)*$e1+$b111)/$e3
    f12=(($b122-$b121)*$e1+$b121)/$e3
    f13=(($b132-$b131)*$e1+$b131)/$e3
    f14=(($b142-$b141)*$e1+$b141)/$e3
    f15=(($b152-$b151)*$e1+$b151)/$e3
    f16=(($b162-$b161)*$e1+$b161)/$e3
    f17=(($b172-$b171)*$e1+$b171)/$e3
    
    f18=(($c112-$c111)*$e1+$c111)/$e3
    f19=(($c122-$c121)*$e1+$c121)/$e3
    f110=(($c132-$c131)*$e1+$c131)/$e3
    f111=(($c142-$c141)*$e1+$c141)/$e3
    f112=(($c152-$c151)*$e1+$c151)/$e3
    f113=(($c162-$c161)*$e1+$c161)/$e3
    f114=(($c172-$c171)*$e1+$c171)/$e3
    This between "sed /etc/cabal/templates/Const.cfg" (first time) and "-e "s/u00/$new_exp/g" \":

    Code:
    -e "s/d11/$f11/g" \
    -e "s/d12/$f18/g" \
    -e "s/d21/$f12/g" \
    -e "s/d22/$f19/g" \
    -e "s/d31/$f13/g" \
    -e "s/d32/$f110/g" \
    -e "s/d41/$f14/g" \
    -e "s/d42/$f111/g" \
    -e "s/d51/$f15/g" \
    -e "s/d52/$f112/g" \
    -e "s/d61/$f16/g" \
    -e "s/d62/$f113/g" \
    -e "s/d71/$f17/g" \
    -e "s/d72/$f114/g" \
    This before the second "sed /etc/cabal/templates/Const.cfg \":
    Code:
    f21=(($b212-$b211)*$e1+$b211)/$e3
    f22=(($b222-$b221)*$e1+$b221)/$e3
    f23=(($b232-$b231)*$e1+$b231)/$e3
    f24=(($b242-$b241)*$e1+$b241)/$e3
    f25=(($b252-$b251)*$e1+$b251)/$e3
    f26=(($b262-$b261)*$e1+$b261)/$e3
    f27=(($b272-$b271)*$e1+$b271)/$e3
    
    f28=(($c212-$c211)*$e1+$c211)/$e3
    f29=(($c222-$c221)*$e1+$c221)/$e3
    f210=(($c232-$c231)*$e1+$c231)/$e3
    f211=(($c242-$c241)*$e1+$c241)/$e3
    f212=(($c252-$c251)*$e1+$c251)/$e3
    f213=(($c262-$c261)*$e1+$c261)/$e3
    f214=(($c272-$c271)*$e1+$c271)/$e3
    This between "sed /etc/cabal/templates/Const.cfg" (second time, end of file) and "-e "s/u00/$new_exp2/g" \":
    Code:
    -e "s/d11/$f21/g" \
    -e "s/d12/$f28/g" \
    -e "s/d21/$f22/g" \
    -e "s/d22/$f29/g" \
    -e "s/d31/$f23/g" \
    -e "s/d32/$f210/g" \
    -e "s/d41/$f24/g" \
    -e "s/d42/$f211/g" \
    -e "s/d51/$f25/g" \
    -e "s/d52/$f212/g" \
    -e "s/d61/$f26/g" \
    -e "s/d62/$f213/g" \
    -e "s/d71/$f27/g" \
    -e "s/d72/$f214/g" \
    Add this at the end of the file somewhere:

    Code:
    if [ $use_log2 -eq 1 ]; then
    echo "`date`: Selected $f11 x as rate for Normal Core Rates on Server 1" | tee -a $logfile2
    echo "`date`: Selected $f12 x as rate for Normal Core Rates on Server 1" | tee -a $logfile2
    echo "`date`: Selected $f13 x as rate for Normal Core Rates on Server 1" | tee -a $logfile2
    echo "`date`: Selected $f14 x as rate for Normal Core Rates on Server 1" | tee -a $logfile2
    echo "`date`: Selected $f15 x as rate for Normal Core Rates on Server 1" | tee -a $logfile2
    echo "`date`: Selected $f16 x as rate for Normal Core Rates on Server 1" | tee -a $logfile2
    echo "`date`: Selected $f17 x as rate for Normal Core Rates on Server 1" | tee -a $logfile2
    echo "`date`: Selected $f18 x as rate for Enhanced Core Rates Core Rates on Server 1" | tee -a $logfile2
    echo "`date`: Selected $f19 x as rate for Enhanced Core Rates Core Rates on Server 1" | tee -a $logfile2
    echo "`date`: Selected $f110 x as rate for Enhanced Core Rates Core Rates on Server 1" | tee -a $logfile2
    echo "`date`: Selected $f111 x as rate for Enhanced Core Rates Core Rates on Server 1" | tee -a $logfile2
    echo "`date`: Selected $f112 x as rate for Enhanced Core Rates Core Rates on Server 1" | tee -a $logfile2
    echo "`date`: Selected $f113 x as rate for Enhanced Core Rates Core Rates on Server 1" | tee -a $logfile2
    echo "`date`: Selected $f114 x as rate for Enhanced Core Rates Core Rates on Server 1" | tee -a $logfile2
    echo "`date`: Selected $f21 x as rate for Normal Core Rates on Server 2" | tee -a $logfile2
    echo "`date`: Selected $f22 x as rate for Normal Core Rates on Server 2" | tee -a $logfile2
    echo "`date`: Selected $f23 x as rate for Normal Core Rates on Server 2" | tee -a $logfile2
    echo "`date`: Selected $f24 x as rate for Normal Core Rates on Server 2" | tee -a $logfile2
    echo "`date`: Selected $f25 x as rate for Normal Core Rates on Server 2" | tee -a $logfile2
    echo "`date`: Selected $f26 x as rate for Normal Core Rates on Server 2" | tee -a $logfile2
    echo "`date`: Selected $f27 x as rate for Normal Core Rates on Server 2" | tee -a $logfile2
    echo "`date`: Selected $f28 x as rate for Enhanced Core Rates Core Rates on Server 2" | tee -a $logfile2
    echo "`date`: Selected $f29 x as rate for Enhanced Core Rates Core Rates on Server 2" | tee -a $logfile2
    echo "`date`: Selected $f210 x as rate for Enhanced Core Rates Core Rates on Server 2" | tee -a $logfile2
    echo "`date`: Selected $f211 x as rate for Enhanced Core Rates Core Rates on Server 2" | tee -a $logfile2
    echo "`date`: Selected $f212 x as rate for Enhanced Core Rates Core Rates on Server 2" | tee -a $logfile2
    echo "`date`: Selected $f213 x as rate for Enhanced Core Rates Core Rates on Server 2" | tee -a $logfile2
    echo "`date`: Selected $f214 x as rate for Enhanced Core Rates Core Rates on Server 2" | tee -a $logfile2
    elif [ $use_log2 -eq 0 ]; then
    echo "`date`: New rates, Logs are turned off" | tee -a $logfile2
    fi



    Open "Floating_Rates_Daemon.sh" with Notepad or something similar and edit the rates as you please.



    Static Rates files:
    Spoiler:

    Firstly, make a copy of "Const.scp" in /etc/cabal/Data, rename the copy Const.cfg and put it in /etc/cabal/templates, overwriting what is there.
    Then, make a copy of "Const.scp" in /etc/cabal/Data2, rename the copy Const2.cfg and put it in etc/cabal/templates,
    Go into both Const.cfg and Const2.cfg and replace the last table with the following:
    Spoiler:
    Code:
    [UpgradeCore]	Grade_Value	E_Default	Enhance
    0	1	d11	d12
    1	2	d21	d22
    2	3	d31	d32
    3	4	d41	d42
    4	5	d51	d52
    5	6	d61	d62
    6	7	d71	d72

    Put "Core_Changing" (file without extension) in /etc/cron.hourly/
    Put "Core_Changing.sh" and "Core_Changing2.sh" in /home/cabal/daemons/
    Open "Core_Changing.sh" and "Core_Changing2.sh" with Notepad or something similar and edit the rates as you please


    That's it. It should now run every hour.

    /*I've not tested this yet, feedback would be great.*/

    Gr.

    /C
    Attached Files Attached Files


  2. #2
    Alpha and Omega Xc0deRed93 is offline
    MemberRank
    Jul 2010 Join Date
    331Posts

    Re: Core Success Rate Randomizer (Hourly)

    Good job. nice release

  3. #3
    Account Upgraded | Title Enabled! hardjump is offline
    MemberRank
    Oct 2009 Join Date
    280Posts

    Re: Core Success Rate Randomizer (Hourly)

    umm no offence or anything.. rly this is good relase info but
    ur stupid releasing something that makes ur server unique from other servers :P
    again.. i dont mean to offend u..and for the record im not sayin ur stupid or retarded or anything but just releasing this is stupid idea u know.. :P

    but again this is great release :)

  4. #4
    Logged in to "The World" TriEdge is offline
    MemberRank
    Sep 2010 Join Date
    467Posts

    Re: Core Success Rate Randomizer (Hourly)

    if he wants to help ragezone then let him lol? i think he knows what hes doing...

    nice release ^^

  5. #5
    Member Deco_Boss is offline
    MemberRank
    May 2008 Join Date
    Enschede, NLLocation
    93Posts

    Re: Core Success Rate Randomizer (Hourly)

    Quote Originally Posted by hardjump View Post
    umm no offence or anything.. rly this is good relase info but
    ur stupid releasing something that makes ur server unique from other servers :P
    again.. i dont mean to offend u..and for the record im not sayin ur stupid or retarded or anything but just releasing this is stupid idea u know.. :P

    but again this is great release :)
    I value your contribution as much as I like other people's (for the record and just to be clear to TriEdge ;)).

    If a "2 Server Setup" is unique for EGCabal (which by god I hope isn't the case), then I'll happily stop releasing ;).

    Actually included in the file is Core_Changing_Parts.sh, which consists of the parts of code you'll need to make this work (mainly). Since my code is free, and if you've got some spare time, take the code I wrote and make a "1 Server Setup" file, then release it here. I hope the rest of the people here appreciate that.

    Also, I hope that atleast people can take a look at the code and see how I made this, this way they can make it emselves in the future.

    You're right in saying this is exquisite stuff, and that the only people that are going to use it are maybe me, and half a dozen other guys/galls. This however doesn't make it worthless to me, or those half a dozen guys/galls.

    Lastly, since I do have very (very) limited time, I'd like you to consider then the following (also for the rest of the people here):
    I still have the following ideas:
    1. Player Dependent Rates (the more players on a server, the lower the rates (or higher, w/e you want X.x))
    2. Random Rates Frenzy! (once every x hours, rates will be y times as high, like an event)
    3. Lottery function using UNIX (simpler, yet probably not really preferable)
    4. Extensive guide on Core.scp
    5. Extensive guide on Const.scp
    6. Extensive guide on OptionPool.scp


    Which would you like to see first (or none of these at all)?

    Please keep in mind 1 and 2 will again be for a 2 Server Setup.

    Love to hear from you,

    Gr.

    /C

  6. #6
    Banned Yamachi is offline
    BannedRank
    Oct 2006 Join Date
    Jolly EnglandLocation
    3,517Posts

    Re: Core Success Rate Randomizer (Hourly)

    Quote Originally Posted by hardjump View Post
    umm no offence or anything.. rly this is good relase info but
    ur stupid releasing something that makes ur server unique from other servers :P
    again.. i dont mean to offend u..and for the record im not sayin ur stupid or retarded or anything but just releasing this is stupid idea u know.. :P

    but again this is great release :)
    Shut up... Your opinion is that of a leecher. Deco_Boss genuinely wants to help and give back to the community that gave him everything he needed to run a server. Next time, keep your "stupid" opinions to yourself. Thank you.

  7. #7
    Account Upgraded | Title Enabled! hardjump is offline
    MemberRank
    Oct 2009 Join Date
    280Posts

    Re: Core Success Rate Randomizer (Hourly)

    Quote Originally Posted by Yamachi View Post
    Shut up... Your opinion is that of a leecher. Deco_Boss genuinely wants to help and give back to the community that gave him everything he needed to run a server. Next time, keep your "stupid" opinions to yourself. Thank you.
    uhh ok so mods can be aggresive but other forumers cant? ;] cool

    and um ok i never knew wat he got or wat who did how and wat for him.u should realise that im not him and im not in his life lol.ive only seen him around here few weeks ago dude im not like.

  8. #8
    Banned Yamachi is offline
    BannedRank
    Oct 2006 Join Date
    Jolly EnglandLocation
    3,517Posts

    Re: Core Success Rate Randomizer (Hourly)

    Quote Originally Posted by hardjump View Post
    uhh ok so mods can be aggresive but other forumers cant? ;] cool
    Even mods get fed up with people eventually. All you've done since you got here is post comments like these, or give bad advice and then claim to know what you're talking about. You're disrupting the community. Please stop.

    Quote Originally Posted by hardjump View Post
    and um ok i never knew wat he got or wat who did how and wat for him.u should realise that im not him and im not in his life lol.ive only seen him around here few weeks ago dude im not like.
    This doesn't even make sense...

    Anyways, stay on topic now.

  9. #9
    .:[5kR1p7 k1dd13]:. x30unlimited is offline
    MemberRank
    Jan 2009 Join Date
    367Posts

    Re: Core Success Rate Randomizer (Hourly)

    do those first, they'll help a lot for new members :P

    Extensive guide on Core.scp
    Extensive guide on Const.scp
    Extensive guide on OptionPool.scp

  10. #10
    Member Deco_Boss is offline
    MemberRank
    May 2008 Join Date
    Enschede, NLLocation
    93Posts

    Re: Core Success Rate Randomizer (Hourly)

    Quote Originally Posted by x30unlimited View Post
    do those first, they'll help a lot for new members :P

    Extensive guide on Core.scp
    Extensive guide on Const.scp
    Extensive guide on OptionPool.scp
    Alright, had this in mind as well but it's never a bad idea to ask for input now is it :P ;)?

    For the time being, I probably won't be starting on this for another 1 - 2 weeks, so don't expect anything any time soon from me ;).

    It might be that this will be a .pdf instead of a post, or it might be a post on our own forum (since I get to lock it there till it's done) but I'll certainly let RageZone know where to find the guides.

    Gr.

    /C

  11. #11
    Account Upgraded | Title Enabled! SpeedDevil is offline
    MemberRank
    Jul 2009 Join Date
    BelgiumLocation
    484Posts

    Re: Core Success Rate Randomizer (Hourly)

    Quote Originally Posted by hardjump View Post
    umm no offence or anything.. rly this is good relase info but
    ur stupid releasing something that makes ur server unique from other servers :P
    again.. i dont mean to offend u..and for the record im not sayin ur stupid or retarded or anything but just releasing this is stupid idea u know.. :P

    but again this is great release :)
    It is exactly this mindset that keeps the community from growing. Releasing new things opens up possibilities as others with fresh ideas might add stuff.

    @Topic: Deco? -> Good Job <3

  12. #12
    Banned P1MAX is offline
    BannedRank
    Jan 2010 Join Date
    69Posts

    Re: Core Success Rate Randomizer (Hourly)

    can you give some clue for configged for 1 Servers or can same setting like this for 1 server only

    thnks

  13. #13
    Account Upgraded | Title Enabled! xXxAxXx is offline
    MemberRank
    Apr 2011 Join Date
    UndergroudLocation
    420Posts

    Re: Core Success Rate Randomizer (Hourly)

    Quote Originally Posted by P1MAX View Post
    can you give some clue for configged for 1 Servers or can same setting like this for 1 server only

    thnks
    You have to simply use the files for the first server.



Advertisement