Changes to pokemon database guide

Discussion in 'Database Modifications' started by coyotte508, Jan 5, 2012.

  1. wyndamn

    wyndamn Member

    Joined:
    Oct 26, 2010
    Messages:
    32
    Likes Received:
    0
    too bad u_u ...anyway thanks. and what about the shell smash?
     
  2. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    Shell smash is specially coded as it deals with 5 stats at the same time, so it doesn't have any parameter.
     
  3. Black Mother

    Black Mother Member

    Joined:
    Mar 1, 2011
    Messages:
    96
    Likes Received:
    0
    Sorry for bumping such an old thread. But anyways, believe it or not I'm still working on this project. xD Anyways, I remember making a topic a while ago about Air Lock making PO freeze for both players. Basically, this is what happened:
    -I changed Air Lock to make it permanently get rid of weather. That way, when a Pokemon switches in, the weather wouldn't just be ignored; it would be gone completely until a weather starter comes in.

    Now the problem is, whenever I switch in a Pokemon with Air Lock during Sandstorm, PO freezes for both my opponent and I (he has the modified DB files as well, and so does the server files). Lamperi a long time ago told me this was the issue:

    "While server copes fine and does exactly what do you mean, client tries to find a message for normal weather starting message, which it does not find. This is a bug in client – it shouldn't crash despite what server sends to it."

    I would like to know if there's any easy way that I myself can fix this bug, or if any of the developers can fix it. Thanks.
     
  4. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    You need to deliver custom DB for all clients.... or much better choice: change your server (C++ code) so that no message is send with airlock :x
     
  5. Black Mother

    Black Mother Member

    Joined:
    Mar 1, 2011
    Messages:
    96
    Likes Received:
    0
    All players already have the custom DB. (sent them all of the files with the ability modifications etc.)
    So I guess I shall find out how to do the second option.

    Also... there's a way for people to play the game with many things modified (moves, abilities, pokemon types etc.) WITHOUT them needing the DB files by editing the server code? If so, that'd be rape.
     
  6. Isa

    Isa Well-Known Tauros

    Joined:
    Dec 11, 2011
    Messages:
    936
    Likes Received:
    1,006
    PO Trainer Name:
    Isa
    I think mostly everything bar abilities can be put on the server only and still work fine, but the players won't see the changes when making their team or selecting moves etc.
     
  7. Black Mother

    Black Mother Member

    Joined:
    Mar 1, 2011
    Messages:
    96
    Likes Received:
    0
    Oh... so they NEED the actual files to see all changes. I thought I can just be able to change moves and all that through the server and have the players not need the files.

    @Lamperi: "or much better choice: change your server (C++ code) so that no message is send with airlock :x "

    Is there a SHORT way of explaining how to do this?
     
  8. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    You need to compile the server.

    The message is send on src/Server/abilities.cpp
    Code (text):
    1.  
    2. struct AMDrizzle : public AM {
    3.     AMDrizzle() {
    4.         functions["UponSetup"] = &us;
    5.     }
    6.  
    7.     static void us (int s, int , BS &b) {
    8.         int w = poke(b,s)["AbilityArg"].toInt();
    9.         if (w != b.weather) {
    10.             int type = (w == BS::Hail ? Type::Ice : (w == BS::Sunny ? Type::Fire : (w == BS::SandStorm ? Type::Rock : Type::Water)));
    11.             b.sendAbMessage(14,w-1,s,s,type);
    12.         }
    13.         b.callForth(poke(b,s)["AbilityArg"].toInt(), -1);
    14.     }
    15. };
    16.  
    There should be if-clause so that b.sendMessage is only done if the weather is not normal.
    Code (text):
    1.  
    2. if (w != b.weather && w != BS::NormalWeather) { ...; b.sendAbMessage(14,w-1,s,s,type); }
    3.  
     
  9. Black Mother

    Black Mother Member

    Joined:
    Mar 1, 2011
    Messages:
    96
    Likes Received:
    0
    Alright. Last question. Only I need to do this, correct? (Do players joining my server need to go through this process as well?)
     
  10. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    No, since your server will be the one who is telling clients to load an unexisting string by specifying no weather for Drizzle-like abilities. If you just skip telling clients that... it'll work :x
     
  11. Ajinkya

    Ajinkya Elite 4 Champion

    Joined:
    Feb 9, 2012
    Messages:
    46
    Likes Received:
    0
    PO Trainer Name:
    Lord Arceus
    how do i insert fake pokemon pics ? what size should they be and how should they be formatted ?
     
  12. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
  13. MysteryMan

    MysteryMan Member

    Joined:
    Jul 8, 2012
    Messages:
    105
    Likes Received:
    0
    For a certain attack, I have the following number under statrate.txt: 655360. I know that this translates to 10% because I know the attack. How would I change this to 20%?
     
  14. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    double it
     
  15. R0b0t1

    R0b0t1 New Member

    Joined:
    Mar 26, 2013
    Messages:
    1
    Likes Received:
    0
    Is there a complete description of all of the files and directories located in bin/db? I haven't been able to find one, and I'm not completely clear as to what some of them do.
     
  16. Camilo

    Camilo Member

    Joined:
    Apr 10, 2014
    Messages:
    53
    Likes Received:
    2
  17. KrisTami

    KrisTami How much is that Mew in the water?

    Joined:
    Dec 13, 2012
    Messages:
    24
    Likes Received:
    2
    PO Trainer Name:
    KrisTami
    The Database Modifications link that you posted it was not working anymore. Also, I didn't see the effect number of Magic Guard nowwhere.