Closed Abrar3616 closed 3 years ago
Hello! Can you please clarify "trajectory tool is working"? Creating vertex.txt is a function within trajectory tool.
When you place the marker on the map, then click "Add vertex"
, does it show the notification "Add vertex < coordinate X >, < coordinate Y >, < coordinate Z >"
on your game screen??
If you can't find a way to create "vertex.txt" with my code, please try to modify & recompile my code in this way
_vertex_file_text
in file G2D/TrajectoryTool/script.cpp
. There, I set:
std::string _vertex_file_text = "vertex.txt";
_vertex_file_text
to the absolute path of your machineHi yes that notification shows. ill try to recompile and then let you know if it works
I am getting the following error and am not able to add this include file as it does not recognize it.
1>------ Build started: Project: TrajectoryTool, Configuration: Release|Win32 ------ dllmain.cpp c:\users\hp\downloads\g2d-master\g2d-master\trajectorytool\dllmain.cpp(28): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? keyboard.cpp c:\users\hp\downloads\g2d-master\g2d-master\trajectorytool\keyboard.cpp(49): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? script.cpp c:\users\hp\downloads\g2d-master\g2d-master\trajectorytool\script.cpp(939): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
How about you turn off the pre-compiled headers:
Project Properties -> C++ -> Precompiled Headers
Precompiled Header
to Not Using Precompiled Header
i tried that but for some reason i cant access the project properties
To ensure my project code does not have any problem with configuration, could you please try to compile the Native Trainer project
which comes with ScriptHook V
? you can download it from For developers
in this link: http://www.dev-c.com/gtav/scripthookv/
There are two possibilities:
Which file should i compile in the project?
Please open samples/NativeTrainer.sln
and compile it
ok will let you know in a while visual studio is updating now
Also just to clarify i changed the variables in script.cpp as you suggested now for compiling i should compile only script.cpp or some other file?
After compiling your project i am getting two of the following error:
Error C1083 Cannot open include file: 'atlimage': No such file or directory in script.h line 14
After building native trainer, which is succesful i get the following popup
This is the final error i get after compiling your code:
Error C1083 Cannot open include file: 'atlimage.h': No such file or directory TrajectoryTool c:\users\hp\downloads\g2d-master\g2d-master\trajectorytool\script.h 14
Probably you need to reinstall Visual Studio, "atlimage.h" belongs to default libaries of Microsoft C++
Hey So i have built the solution successfully, your right the specific module was not selected while installing. However after changing the file path i still cant find the vertex.txt file. i also copied the newly built .asi files from bin folder to my gta directory. i can use the condition tool and the trajectory tool shows the msg that vertex is added but i cant find the file in my specified directory as mentioned in the code.
I see whitespace within your directory, which is probably the problem.
A quick test is to create a folder OutputG2D
within C:/
, then put the directory C:/OutputG2D
Let's see how it is going.
ok will try that
I also this get this msg after i compile. can this be ignored?
Because you click compile and run
, just click compile
, you won't get that message
Ok thanks, and the spaces was the issue Now i can see the file
So can i just use this directory for the dataset images and all other files?
Probably you need to create C:/OutputG2D/dataset
and C:/OutputG2D/dataset/images
And also update all corresponding parameters with C:/OutputG2D
P/S: I will close this thread. If you have other issue, please open another thread, because this thread's title is about "can't find vertex.txt" while you've found it. This helps other people easily search solutions that relate to their corresponding issues.
Yes thankyou very much for your help
I am running a cracked version of gta5 and after creating the vertices using the tool i cant find the vertex.txt file in the gta5 directory. Both the weather and trajectory tool are working but the file cannot be found i dont know if it is even created. Could you please help me with this. Thanks