1. A new version of the Alpha has been released! (July 1st)
    50 new levels for a total of 100, new art, cutscenes and much more. Download the new Alpha now!
    http://godisacube.com/for...

[solved] KeyNotFoundException when i click on the inventory

Discussion in 'Age of DNA - Bug reporting' started by Schade, Jan 28, 2015.

  1. Schade

    Schade New Member Age of DNA - Alpha member

    When i click on the inventory i got this error :

    KeyNotFoundException01.jpg

    It's only appends when i click on the inventory or access by pressing F1 too. Clearing the console make the messages reappear instantly . It's not appends with the other menu.

    And, I nearly forgot, I didn't see all of your element for create DNA. But i can load a card who use them and she work.
    Last edited: Jan 28, 2015
  2. King_Kadelfek

    King_Kadelfek Administrator Staff Member Age of DNA - Alpha member

    The output log could help me to find the problem in this case. Could you join it to one of you post?
    (with a different filename or the upload wouldn't work, such as "output_log-Schade-2015_01_29.txt")
    (I will make some work on the forum system to avoid this bug with filenames)
  3. Schade

    Schade New Member Age of DNA - Alpha member

    Sorry but, the file look like the previous one. In fact, i tried to remove it for see if a new one is generated but it's not the case. That's why i didn't send it.
  4. King_Kadelfek

    King_Kadelfek Administrator Staff Member Age of DNA - Alpha member

    You can try to open the txt file, delete the content and save it.
    I don't know if the software creates a new output_log at launch (normally the softwares do it), but it have to write new things inside.
  5. Schade

    Schade New Member Age of DNA - Alpha member

    Sorry, the file still empty.
  6. King_Kadelfek

    King_Kadelfek Administrator Staff Member Age of DNA - Alpha member

    Is it the version of the game where you mixed files?
    Because there is an output log where things are written in the Windows build, but I remember you told me that you couldn't find the output log for the Linux build.
  7. Schade

    Schade New Member Age of DNA - Alpha member

    Yes, but i mix a Windows build (v0.5.0.1d) with the Linux one (v00.05.00.02a) and replace all the double with the Linux version. So I keep the Windows output log file.

    This files are replaced by the Linux build :

    in "giac_Data" folder :
    mainData (same size, more recent)
    Ressources.assets (same size, more recent)
    sharedassets0.assets (bigger, more recent)
    PlayerConnectionConfigFile (same size, more recent)
    ============================================================

    in "giac_Data/Managed" folder :
    Assembly-CSharp.dll (Bigger, more recent)
    Assembly-CSharp.dll.mdb (Bigger, more recent)

    This files are replaced but they look like identical (same size, same date) :
    Mono.Security.dll
    Mono.Security.dll.mdb
    Mscorelib.dll
    Mscorelib.dll.mdb
    System.Core.dll
    System.Core.dll.mdb
    System.dll
    System.dll.mdb
    UnityEngine.dll
    ============================================================

    in "Mono"folder :
    -No files with size and date differences in Linux Build-

    This files are replaced but they look like identical (same size, same date) :
    browscap.ini
    ============================================================

    in "Mono/Etc" folder :
    -No files in Linux Build-
    ============================================================

    in "Mono/Etc/mono" folder :
    -No files with size and date differences in Linux Build-

    This files are replaced but they look like identical (same size, same date) :
    config
    ============================================================

    in "Mono/Etc/mono/1.0" folder :
    -No files with size and date differences in Linux Build-

    This files are replaced but they look like identical (same size, same date) :
    DefaultWsdlHelpGenerator.aspx
    machine.config
    ============================================================

    in "Mono/Etc/mono/2.0" folder :
    -No files with size and date differences in Linux Build-​

    This files are replaced but they look like identical (same size, same date) :
    DefaultWsdlHelpGenerator.aspx
    machine.config
    settings.map
    web.config
    ============================================================

    in "Mono/Etc/mono/2.0/Browsers" folder :
    -No files with size and date differences in Linux Build-

    This files are replaced but they look like identical (same size, same date) :
    Compat.browser
    browscap.ini
    ============================================================

    in "Mono/Etc/mono/mconfig" folder :
    -No files with size and date differences in Linux Build-​

    This files are replaced but they look like identical (same size, same date) :
    config.xml
    ============================================================

    in "giac_Data/Resources" folder :
    -No files with size and date differences in Linux Build-​

    This files are replaced but they look like identical (same size, same date) :
    Unity default resource

    I hope this will be helpful to you (it was very long to write). Maybe i did some typo errors, ask me if you have a doubt. But if you have the time to make a full Linux version, i will try again with pleasure.

    Just because i am curious this files contents look strange (With suspicious bot URL) :

    browscap.ini​

    What do you would like to do with this in the game ?
  8. King_Kadelfek

    King_Kadelfek Administrator Staff Member Age of DNA - Alpha member

    Thank you very much for all these informations, Schade. :D

    Browscap.ini is automatically generated by Unity when creating the Linux build. From what I can learn, it's a file used to detect browsers, from the common Internet Explorer to special browser versions used by search engine bots.
    It looks like Browscap is used by Unity, and it's a legit file.

    I heard that you can run a Linux Unity build on a Linux server, so I think it's because of that there is a browser detecting system.


    What you said solves the mystery about the output log. It's not an output log generated by the Linux build, it's just a file copy pasted.
    So I looked more about where to find / how to generate an output log for the Linux build.

    On the forums of "Sir, You Are Being Hunted", they say this:
    You should find something like "God is a Cube" for the Company Name as well as the Product Name.


    I also found a discussion about Unity 4 and Linux where they say this:
    I hope one of the two methods will
  9. Schade

    Schade New Member Age of DNA - Alpha member

    I found the file. ".log" files aren't accept by the forum, and the file was too heavy (1,2Mo), so i cut some parts (the repeated errors) and rename it in "*.txt"
    Good reading !

    Attached Files:

  10. King_Kadelfek

    King_Kadelfek Administrator Staff Member Age of DNA - Alpha member

    I see where the error is thrown, it's about displaying the item quantity, but I don't know why. It looks like the informations about the texture numbers (used to display numbers next to the item picture) have not been recorded, or that the number to display is incorrect.
    I added a lot of informations to output in the log, so I will have more details about the reasons of the bug. This way, I could eventually correct the bug of find a fix.

    This time I made 2 builds, "x86" and "universal (x86 + x64)". I don't think it will change something, but it's worth giving a try.

    http://www.mediafire.com/download/cw0a7acm2fw2gu0/GiaC-AODNA-v00.05.00.02b-Linux-x86.7z
    http://www.mediafire.com/download/fm6bek3r5sdz5jw/GiaC-AODNA-v00.05.00.02b-Linux-universal.7z

    I'm giving the links in public, so other Linux users could give a try.

    > inb4
    Waiting for the files to upload I will make some assumptions.
    1. the number to display is "-x" (minus something), but I don't see any reason (so it's unlikely)
    2. the number to display is "NaN" (not a number) or "infinity", but it would mean that there is a division by 0, which is unlikely
    3. the number to display is "x,x" instead of "x.x", but it would mean that the Linux build doesn't use the same decimal mark... I can believe it

    Sherlock Jojo-400px.png
    (yeah, files took time to upload)
  11. Schade

    Schade New Member Age of DNA - Alpha member

    Okay, it's show more detail in the error log. I used giac.x86_64 but giac.x86 look to work in the same way.

    Attached Files:

    Last edited: Jan 31, 2015
  12. King_Kadelfek

    King_Kadelfek Administrator Staff Member Age of DNA - Alpha member

    Got it.

    Code:
    GUIP str_number : 1,0k
    UnityEngine.Debug:Internal_Log(Int32, String, Object)
    UnityEngine.Debug:Log(Object)
    It was option number 3: the Linux build uses the "," decimal separator instead of the "." decimal separator.
    So I will just have to add a "," to the numbers texture (and the code to manage it), and displaying numbers in the inventory will no longer launch errors in the Linux build. :D

    I will do this as fast as possible.


    2015_01_31-http___i888.photobucket.com_-15h36m31s.png
    This is my face when I find a comma induced bug.
  13. King_Kadelfek

    King_Kadelfek Administrator Staff Member Age of DNA - Alpha member

    @Schade
    I made a new Linux build.
    http://www.mediafire.com/download/5lkgyj5rrkpvqbj/GiaC-AODNA-v00.05.00.03b-Linux.zip

    There should no longer be problems with decimal separators ("." of ",").
    In the Linux version, there is no autoupdater (for now), because I still have to figure how to make separate upgrade trees (for Windows and Linux). But when the Linux build no longer launch errors, I will made the auto updater compatible with Linux as well. :)

    I hope the Linux build will work. :D
    Schade likes this.
  14. Schade

    Schade New Member Age of DNA - Alpha member

    Yes, i don't have this error anymore. But i found a some news... I will read the forum and if it's a new bug, I will create a new topic... If you want.
  15. King_Kadelfek

    King_Kadelfek Administrator Staff Member Age of DNA - Alpha member

    Yeah, of course.

Share This Page