Jump to content

RaiNote

Member
  • Posts

    13
  • Joined

  • Last visited

Posts posted by RaiNote

  1. On 1/16/2023 at 6:23 PM, Zyna said:

    Hello @Tyrion thanks for the bug report.

    Is it possible that you have any custom maps in your Documents\BattleForge\map directory? If yes, could you please try moving them to a different directory and tell us if that fixes the issue? If this does indeed fix the issue, we would appreciate if you can send us the custom maps from that folder.

    Simply by reading the log it states, that maps are missing, not that additional malformed maps exist. So, I'm uncertain where your assumptions come from.
    Furthermore, I have been experiencing the same issue, after updating an old install as well as a fresh install of SR.

    When tabbing out, the client will not close immediately as it will freeze and stuck before reaching any of the ERROR log messages.

    Also by going through a Process Monitor log, there are a lot of File queries resulting in "Path not found", which may or may not be related.

    The exact exit status code: -1073741819

    Furthermore, a specific path and file related to the game which aren't found: "[RootDirectory]\Skylords Reborn\bf1\map\UG\"
    "[RootDirectory]\Skylords Reborn\bf1\map\PVP\12601_PvP_02p_Skjal2.map"

    If you require the Process Monitor log, please contact me separately as it's significantly larger than the allowed upload size. (ca. 40mb)

    Going through my own memdump, I can see that a memory corruption occured.

    Quote

    ExceptionAddress: 0144ef37 (BattleForge!CSslConnectionImplOpenSsl::SetTrustedRootCertificate+0x00178a87) ExceptionCode: c0000005 (Access violation) ExceptionFlags: 00000000 NumberParameters: 2 Parameter[0]: 00000000 Parameter[1]: e0ee2edc Attempt to read from address e0ee2edc

     

  2. This is a small project with which you can have replays which are being generated from BattleForge automatically renamed to whatever you want.

    Although I didn't test whether BattleForge writes continiously or in one go to the replay file so there might be some issues. (it will only rename new replays and only one which are called "autosave.pmv")


    https://github.com/gaschenk/ReplayFileWatcher/releases/download/release/ReplayFileWatcher.zip

  3. 8 minutes ago, Crypto5842 said:

    Hi I'm working on an Discordbot which should display the cards as MessageEmbed in my Discord Server. The Problem is that the API Image Response is not an PNG or JPG Image, if you post this link in Discord for example: https://cardbase.skylords.eu/lrms/GetMediaData?id=5f3324a2c6ee954ccfe9bdc8 you will not get an Image displayed.

    Is it possible that you could provide the images in PNG Format?

    Thanks.

    The issue you are facing isn't because it's not PNG, as in fact it's MIME type is PNG. Your issue ist that first of all those images are cached, thus may not display immediately, to avoid this I'd suggest caching them locally with their IDs and check whether the image already exists in that folder & if not download it and provide it.

  4. 2 hours ago, dreaddy said:

    you can extract the "real" cardid:
    function sl_extractCardkey($filekey){
        return $filekey % 0x4240;
    }

    I found some Infos we made about the replayformat (->attachment) and I'm about half done with a PHP Library
    I hope I will finish it this weekend and publish it afterwars.

    format.txt 5.56 kB · 3 downloads

    Do you know whether there are more "Actions", "Replay Keys" than which you listed?

  5. 21 hours ago, Ultrakool said:

    I was looking for this as well. Thank you! And @Kaldra I think there is still a demand for a replay website, similar to bfcards.info where you could upload replays for every map and state the colors etc

    I'm currently trying to port it the Reader to C# and make it somewhat available for .Net & in reusable way. Even though I'm reading through the source of the parser some stuff does look weird at times.

    On 1/19/2021 at 2:52 AM, dreaddy said:

    Hi,

    back in 2009 I made a ReplayAnalyzertool with a friend.
    Just found it (still looking for the sourcecode, i'll share should I find it again).
     

    If you can't find the source here are decompiled versions of the parser.
    https://1drv.ms/u/s!AqD5CDsxk6MwluluQRoPtD67BrQYSQ?e=cD2rHz

  6. 5 hours ago, dreaddy said:


    About the parser:
    call java -jar parsersender.jar test.pmv >> output.txt and you will get stuff like
    "{
    "cards":{
    "1003":{"affinity":-1,"energy":100,"id":1003,"name":"{card:rv}","orbs":[1,1,0],"rarity":4,"type":2}
    ,"1004":{"affinity":-1,"energy":65,"id":1004,"name":"{card:rw}","orbs":[2,0],"rarity":1,"type":1}
    ,"1021":{"affinity":-1,"energy":70,"id":1021,"name":"{card:ai}","orbs":[4,4],"rarity":4,"type":1}" [...].

    You can also call something like
    $replayinfos = json_decode(exec("java -jar parsersender.jar test.pmv"));  in PHP

    format:
    Can't remember too much because it was 10 years ago.
    But we viewed some replays in the hexeditor and were able to guess most things after a few hours and some coffee.
    On the start there were basic mapinfos(mapname, difficulty...), followed by the players and their deck as cardids/upgradelevel/charges.
    Search for your cardids in your replayfile( should be those https://auctions.backend.skylords.eu/api/cards/all as hex ) and you should be able to find the position of the decks.


    Last things were the playercommands in order. Something like timestamp, playerid, action(attack, monument built, card played), x and y positions.
    You can use them to detect the winner and the orbs played (but that can also be detected from the deck).
    At some point it helps to view special replays like "playing Sunderer, leave game", "playing Sunderer, move it up, leave game".

    Regarding the format or specifically the cardId this doesn't hold true as those are different if you take a look at the api & compare it to the cardIds which are used in the parser e.g.:

    api: cannon tower 700

    parser: 51580

    at least if i'm reading it correctly.

  7. Since I didn't find any .NET implementation regarding the API I've gone ahead and make one myself.

    With my limited experience regarding webapis and accessing them etc. the source may look reasonably bad.

    Which APIs does it support?

    • Cards API (limited)
    • Map API (not working)
    • Auction API (should work to its full extent)
    • Leaderboards API (untested)
    • Battleforge replay reader

    So with that out of the way:

    Nuget link

    Github repository

    Example Usage

    Spoiler

    private static readonly JsonSerializerSettings Settings = new()
    {
        MetadataPropertyHandling = MetadataPropertyHandling.Ignore,
        Formatting = Formatting.Indented,
        DateParseHandling = DateParseHandling.None,
        Converters =
        {
            new StringEnumConverter()
        }
    };

    static void Main()
    {
        var x = Instances.CardService.HandleCardRequest(new List<Tuple<RequestProperty, string>>
        {
            new(RequestProperty.Name, "Gro"),
            new(RequestProperty.Defense, "1100")
        });
        foreach (var card in x)
        {
            Console.WriteLine(JsonConvert.SerializeObject(card, Settings));
        }
    }

     

  8. On 12/15/2020 at 6:13 PM, fiki574 said:

    For example, now you could create an application that tracks the average price of every card and makes a nice graph. 

    I believe this wouldn't help as you'd want to know at which price they're sold instead of which price they are listed at as I believe often enough cards just never get sold at certain price ranges. This might already possible since I haven't read properly into it.

  9. There is an issue regarding the Updater, which presumably comes from issues with the .Net Framework which leads to an update loop, which correctly downloads & installs the files but doesn't "acknowledge" that these files are correct thus it will download & restart until it's closed.

    This issue is similiar if not exactly the same as the issue people face with the Visual Studio Installer which prevents them from installing the files although they are correctly downloaded.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use