Jump to content

Syko

Members
  • Posts

    403
  • Joined

  • Last visited

Posts posted by Syko

  1. It would be cool if you could add some way for you to be able to automatically download and update mods from JKHub right from the launcher, kind of how Steam workshop works with Skyrim's launcher. 

  2. JKA might be a lot more active now with that Humble Bundle!

    This bundle is actually pretty good. I haven't bought a bundle in ages. A lot of the latest ones have sucked, quite frankly. I think the last one I actually bought was the one with Batman Arkham Asylum which was like at least 6 months ago.

    I also finally own a legal copy of JKA...

  3. I think I'm closer to the error. In the call stack window, right under the entry that points to the strncpy.asm file, a green arrow points me to this line of code: 

     

    strncpy(files[*num_file].dir, page, strstr(page, ";")-page);
    It's within the J3F_GetData function. When the J3F_GetData function is called in main.cpp, it has 3 null parameters at the end.

     

    J3F_GetData(urls[curr_url], urls, &num_url, files, &num_file, &num_page, &curr_url, NULL, NULL, NULL);
    Maybe these three null parameters at the end are the problem? Still not entirely sure what to do.
  4. Hey guys, 

     

    Let me just start off by saying that I'm a far from experienced coder. One of the ways I'm trying to learn practical C++ is by looking at @@spior's JK3files download bot and trying to understand the code. The more I look at it and experiment with stuff the more I think I understand how it works. If I figure it out fully I plan to try to fix the bugs that the downloader bot has been plagued with for so long now. Here's the source, if anyone's forgotten where it is: https://bitbucket.org/spior/jk3files/src

     

    Anyway, the first issue I'm trying to tackle is an instant crash I get when trying to download all of the Jedi Outcast mods from JK3files (using the bot's "JK2" parameter). The bot that I'm running I compiled directly from the source and I'm running it through the Visual Studio debugger. This is the error the debugger gives me: 

     

    Unhandled exception at 0x1003d785 (msvcr100d.dll) in jk3files.exe: 0xC0000005: Access violation writing location 0x0128f140.

     

    I also happened to notice that @@eezstreet mentions this particular bug in his "Debugging like a pro" tutorial at the end. Apparently this bug occurs because the code using a reference to a null pointer. 

     

    Sure enough, in main.cpp I found a pointer set to NULL: 

     

    file_t *files= NULL;
    And then it's referenced later in jk3_func.cpp:

     

    void J3F_GetData(
    	const char *page, 
    	char urls[][MAX_URL_LEN], int *num_url, 
    	file_t *files, int *num_file, 
    	int *num_page, int *curr, 
    	int *num_files, long *num_dl, double *num_GB
    	)

    I think I understand the error but I'm not sure what I would have to do to fix it. Would I have to change the pointer to something other than a null? I've tried experimenting with some stuff but usually it just results in compiler errors.

  5. Hello everyone, back from JKHub exile for a bit.

     

    I'm having some trouble with the OpenJK Linux build. I can run the game fine in windowed mode, but when I switch to full-screen the game screws up for lack of better words. It doesn't really crash as I wrote in the title. Rather, it loads up the game menu and I see it for only about 1-2 seconds until it reloads the menu. It keeps reloading the menu over and over again until I force OpenJK to close. I don't even have enough time to enter in the windowed command into OpenJK's console, so in order to run the game again I have to launch it with the windowed parameter. The same thing also happens when running in windowed mode but giving it a reasonably high resolution (something over 1280 x 1024).

     

    Is this something you guys can fix with the source code or is there something I need to do on my end to fix it?

×
×
  • Create New...