|
Post by nineeyeron on May 19, 2021 2:15:29 GMT -5
Anyone got this working in 3.9? I have no idea how to create a .py file so I guess I can just run the code from the python window? I edited the script in a text editor first.
I don't have a "Temp" folder that I can see (no idea why) so not sure where the first address should point so I pointed it to the file I made using Chad's tool. That means both links point to the same place?
Really stuck with this one and I thought I could code (not done python before and no instructions mention how to make a .py file).
course_file="C:\Users\[user]\AppData\LocalLow\2K\PGA TOUR 2K21\Courses\Lakes.course"
course_file_2K21=Path("C:\Users\[user]\AppData\LocalLow\2K\PGA TOUR 2K21\Courses\Lakes.course")
Where should these two be pointing? I get the error NameError: name 'f' is not defined and the same error for the next address!
I guess "Local low" is OK to use as its probably the same as "temp" but a window 10 thing?
|
|
|
Post by lankydoodle on Aug 13, 2022 10:11:22 GMT -5
What I found is that there is a difference between how trees are stored between the 2019 format that Chad's tool produces and the format that the 2K21 designer expects. There is a VERY rough way to make it work if absolutely needed but again, its pretty rough. I made it work but ended up not being super happy with how all the trees imported anyway so I ended up deleting most of them anyway. Hit me up 1:1 if you want to give it a try but its pretty finicky. I've been messing with this since I found your workaround a few weeks ago and would love to get something solid into the repo (or just my fork) as an official fix. The script is working for loading directly into 2k21, but it does freeze when I try to play the course in the editor for a couple courses I've tried to make. This might be an issue with LiDAR data in the export, so I'm curious to hear what you have for workarounds to try to figure it out a cleaner way with the trees and any other formatting changes you're aware of.
|
|
stubby3596
Amateur Golfer
Posts: 263
TGCT Name: stubby3596
|
Post by stubby3596 on Aug 14, 2022 6:45:25 GMT -5
Someone else pinged me on this recently too. I think I had to manually edit the one file that gets created and then use the. Py script to package it back up. Super hacky and super manual and honestly it was so long ago that I don't have the details.
|
|
|
Post by lankydoodle on Aug 18, 2022 22:04:47 GMT -5
Someone else pinged me on this recently too. I think I had to manually edit the one file that gets created and then use the. Py script to package it back up. Super hacky and super manual and honestly it was so long ago that I don't have the details. Yea the more I've looked into them, the more I've realized there's a lot that doesn't make sense about what shows up and how the game is expecting things in these json objects. My comparison of a simple generated course file from chad's tool and a pre-filled course file from 2k21 show very different things in terms of the json(course file) structure of each. Like is there some documentation of this anywhere that can be keyed out to 2k21 or was it just a guessing game? These are mostly rhetorical questions because it's seeming like the best way will be to just get 2019 and deal with it. Anyway, thanks for the head start, and I'll be back with updates if I get anywhere productive.
|
|
stubby3596
Amateur Golfer
Posts: 263
TGCT Name: stubby3596
|
Post by stubby3596 on Aug 18, 2022 23:31:26 GMT -5
I don't think it is documented as I'm sure they never expected anyone to crack into the course file. I can honestly say you might be better tk just hand plant the trees...
|
|
|
Post by brennanrv on Nov 1, 2024 5:25:31 GMT -5
I've got a quick question. I've created loads of lidar courses using Chad's tools they're all courses that I've played locally and I'd so love to be able to play them in VR using TGCVR on PC. Wondered if any of you had the expertise to edit a TGC2019 course file for use in the original TGC(2014) game? If I can get the basic lidar/osm course files to be recognised by the tgc 2014 game I'd then be able to edit and publish the course on the 2014 game and then access it via the TGCVR game. Alternatively if you know of a way to get lidar data into the 2014 game then I'd greatly appreciate your advice. Thank you
|
|