Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Please read the forum rules before posting.



Check if you are posting in the correct category.



The Off Topic section is not meant for discussing Cookie Clicker.

Looking into modding the game; doesnt make sense; help?

CalamityCalamity Member, Friendly Posts: 15,092 ✭✭✭✭✭
I would like to know how to make new tech, and everything really? Has anyone begun to poke around in the code, I would really like to make some mods to test the waters.


Comments

  • gneratororgneratoror Member Posts: 133 ✭✭
    edited March 28
    Oh yeah, i haven't really tested it and i am neither an experienced coder, but here is some docummentation.

    new G.[item abreviated]({}) --> this creates an item of certain kind, inside the curly braces, you have to write different parameters:
    EX: new G.res ({
    name:'pepper'
    })

    G.getDict('item').[parameter] ---> Usually for adding a parameter, on a sidenote, in case you are adding lets say an effect, you have to ad ".push" (which adds it to the array var in 'item'), in cases lie modes you do not have to.

    effects---> a parameter for versatile options, analize them well, for example in researches and traits they are often used with a function.

    type---> defines de parameter type.

    'func:function(){} --->this is generally used with G.getDict inside the curly braces to change something. A function itself is basically a list of commands that can get called easily, but i do not think you will need to use it that way.


    Here is the data.js file: http://orteil.dashnet.org/legacy/data.js?r=0.4908373869796532
    Also, do you know a trustable place to upload the file.
    Post edited by gneratoror on
    "First off, you should read my name again." -Uiomanca[n]t
    I am no way profesional
  • CalamityCalamity Member, Friendly Posts: 15,092 ✭✭✭✭✭
    pastebin?


  • The_Cookie_MonsterThe_Cookie_Monster Member Posts: 237 ✭✭
    Calamity said:

    pastebin?

    ᴎa m8, i will hak ur pastebin
    I AM YODA
    all my friends in the whole entire world: @The_Cookie_Monster, @Drago_Meh, @Maniklas, @McJagger, @Lefian.
    I am r a i n b o w ! !
    "RIP being able to show off cool dragons easily." ~Lefian
    meh
    RIP being able to show off cool dragons easily.
  • CalamityCalamity Member, Friendly Posts: 15,092 ✭✭✭✭✭
    Good luck xd


  • gneratororgneratoror Member Posts: 133 ✭✭
    And how do i get it to load in neverending from legacy, i have never made a mod for anything
    "First off, you should read my name again." -Uiomanca[n]t
    I am no way profesional
  • CalamityCalamity Member, Friendly Posts: 15,092 ✭✭✭✭✭
    Try copying the pastebin link?


  • gneratororgneratoror Member Posts: 133 ✭✭
    edited March 29
    Calamity said:

    Try copying the pastebin link?

    nope, neithe that one nor the link, nor just the ID, nor adding .js
    I think we will need to use GitHub, but i feel too young.

    Post edited by gneratoror on
    "First off, you should read my name again." -Uiomanca[n]t
    I am no way profesional
  • CalamityCalamity Member, Friendly Posts: 15,092 ✭✭✭✭✭
    Try a site that allows you to host JS files?


  • gneratororgneratoror Member Posts: 133 ✭✭
    Yeah, pretty much the idea, will keep you updated
    "First off, you should read my name again." -Uiomanca[n]t
    I am no way profesional
  • gneratororgneratoror Member Posts: 133 ✭✭
    "First off, you should read my name again." -Uiomanca[n]t
    I am no way profesional
  • gneratororgneratoror Member Posts: 133 ✭✭
    edited April 2
    The mod worked, and became mod.js, ugh, i need to mak a new mod manifest
    EDIT:
    Enough of multiposting, my test mod is done (Missing lot of stuff, may never update):
    https://rawgit.com/Generatoror/hello-world/master/cookieLegacy.js
    For GitHub users, use rawgit.com like this:
    https://rawgit.com/[username]/[repository]/[branch]/[filename].js
    Post edited by gneratoror on
    "First off, you should read my name again." -Uiomanca[n]t
    I am no way profesional
  • CalamityCalamity Member, Friendly Posts: 15,092 ✭✭✭✭✭
    Have you found out how to create new units yet?


  • gneratororgneratoror Member Posts: 133 ✭✭
    edited April 2
    Yeah of course, the same way as everything else "new G.unit" if you are not sure about how to abreviate somethuing look into data.js
    Speciffically here is an example:

    Also "//" means nothing happens there, it is for writing some message or notee, or unabling something buggy.
    new G.Unit({
    name:'gatherer',
    startWith:5, <----This is ussually not needed
    desc:'@forages for basic [food], [water] and [archaic building materials,Various interesting things]<>A vital part of an early tribe, [gatherer]s venture in the wilderness to gather food, wood, and other things of note.',

    UPDATE, now mod has sprites
    Post edited by gneratoror on
    "First off, you should read my name again." -Uiomanca[n]t
    I am no way profesional
Sign In or Register to comment.