Project 1999

Go Back   Project 1999 > General Community > Technical Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 09-03-2025, 03:05 AM
patlefort patlefort is offline
Skeleton


Join Date: Apr 2012
Posts: 19
Default URL or API to check for current version of patch files?

I would like to automate version checks and updates. Does Project 1999 provide a way to query the latest version?
Reply With Quote
  #2  
Old 09-03-2025, 10:31 AM
loramin loramin is online now
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 10,418
Default

There's no API, but there's https://www.project1999.com/ ... new patches are always posted as news items on the front page
__________________

Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides
Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details.
Reply With Quote
  #3  
Old 09-03-2025, 10:50 AM
patlefort patlefort is offline
Skeleton


Join Date: Apr 2012
Posts: 19
Default

Thanks for the answer. Scraping a website for a link is far from ideal. I'll have to think of a solution. My suggestion for the website would be to simply have a file that can be downloaded that contain the version or filename of the latest release of the patch files. Just a file containing a string.
Reply With Quote
  #4  
Old 09-03-2025, 11:14 AM
loramin loramin is online now
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 10,418
Default

... or you could just wait until you try to login and it tells you to patch (like everyone else) [You must be logged in to view images. Log in or Register.]
__________________

Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides
Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details.
Reply With Quote
  #5  
Old 09-03-2025, 06:32 PM
patlefort patlefort is offline
Skeleton


Join Date: Apr 2012
Posts: 19
Default

But why? It would be trivial to implement. I'm trying to create a launcher for linux that make it as easy as possible but for that, I need to automate the update process. Part of that process is converting everything to lower case to make sure files are all correctly overwritten. And yes I've had issues with that which is why I'm doing this.
Reply With Quote
  #6  
Old 09-05-2025, 09:59 AM
Tann Tann is offline
Planar Protector

Tann's Avatar

Join Date: Oct 2010
Posts: 1,123
Default

Quote:
Originally Posted by patlefort [You must be logged in to view images. Log in or Register.]
Scraping a website for a link is far from ideal
maybe not ideal but it's super simple, here:

Code:
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as ec
from selenium.webdriver.common.by import By

options = webdriver.ChromeOptions()
options.add_experimental_option("detach", True)
options.add_experimental_option("excludeSwitches", ["enable-logging"])
driver = webdriver.Chrome(options=options)

driver.get("https://www.project1999.com/")

try:
    WebDriverWait(driver, 10).until(ec.element_to_be_clickable((By.CSS_SELECTOR, "#collapseobj_module_16 > tr > td > a:nth-child(7)"))).click()
except Exception as e:
    print(f"you dun goofed: {e}")
__________________
< Knights Who Say Ni >
Qeynos questing and leveling (all quests nerfed) | Off the beaten path 24-40.
Reply With Quote
  #7  
Old 09-05-2025, 11:09 AM
loramin loramin is online now
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 10,418
Default

You ChatGPTed that didn't you [You must be logged in to view images. Log in or Register.]
__________________

Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides
Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details.
Reply With Quote
  #8  
Old 09-05-2025, 11:11 AM
Tann Tann is offline
Planar Protector

Tann's Avatar

Join Date: Oct 2010
Posts: 1,123
Default

that? no, i use scrapers on the daily so i just Frankensteined some of my other code.
__________________
< Knights Who Say Ni >
Qeynos questing and leveling (all quests nerfed) | Off the beaten path 24-40.
Reply With Quote
  #9  
Old 09-05-2025, 11:22 AM
loramin loramin is online now
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 10,418
Default

Quote:
Originally Posted by Tann [You must be logged in to view images. Log in or Register.]
that? no, i use scrapers on the daily so i just Frankensteined some of my other code.
Heh, sorry:

Quote:
WebDriverWait(driver, 10).until(ec.element_to_be_clickable((By.CSS_SELEC TOR, "#collapseobj_module_16 > tr > td > a:nth-child(7)"))).click()
looked like a selector (and just code in general) an AI would write.
__________________

Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides
Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details.
Reply With Quote
  #10  
Old 09-05-2025, 11:27 AM
Tann Tann is offline
Planar Protector

Tann's Avatar

Join Date: Oct 2010
Posts: 1,123
Default

I wouldn't put it past my former self to have used chatgpt originally, the websites I frequent are often slow to respond so I had to include a lot of wait timers and try/catches so the code wouldn't crap itself.
__________________
< Knights Who Say Ni >
Qeynos questing and leveling (all quests nerfed) | Off the beaten path 24-40.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:56 PM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.