Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script hook V error when generating people #5

Closed
duanzhiihao opened this issue May 16, 2019 · 20 comments
Closed

script hook V error when generating people #5

duanzhiihao opened this issue May 16, 2019 · 20 comments

Comments

@duanzhiihao
Copy link

Hi, I have created and saved 1 scene by following your steps. I restart the game and press L, then my man falls from the sky to ground successfully. But then(like 3:44 in your youtube video) there comes an error window:
SCRIPT HOOK V ERROR
CORE: An exception occurred while executing 'GCC-CL.asi'
(0x00007FFC0ED7D890), id43
, and there are no people on the ground. I can do nothing but exit the game.

Could you tell me what's happening? If I want to debug it, which source file should I look at?

@yixinWang2018
Copy link

i have the same problem as you, and now have you found a solution?

@duanzhiihao
Copy link
Author

i have the same problem as you, and now have you found a solution?

Not yet

@yixinWang2018
Copy link

Maybe we can discuss it

@duanzhiihao
Copy link
Author

Maybe we can discuss it

ok, 我这周研究下, 有进展了发到这里

@yixinWang2018
Copy link

ok~

@Elin24
Copy link
Collaborator

Elin24 commented May 20, 2019

After some exploration with a friend having this problem, the reason is that there is no SceneDirectorAnim.txt in the game's root folder.

I have updated the readme file. Following below step could solve this problem:

Download GCC-COllector-Tool and put SceneDirectorAnim.txt in the game's root folder.

Deatailed infomation could be obtained from issue 2

Thanks for your attention.

@duanzhiihao
Copy link
Author

duanzhiihao commented May 20, 2019

I have put the SceneDirectorAnim.txt in the right place, but the problem remains. Can it be some problems with version changes?

@leaicc
Copy link

leaicc commented May 21, 2019

I have put the SceneDirectorAnim.txt in the right place, but the problem remains. Can it be some problems with version changes?

@Elin24 told me the following solution,you can have a try.Download DirectXTK.lib from https://github.com/microsoft/DirectXTK?tdsourcetag=s_pctim_aiomsg and recompile it,then put it in the folder \GCC-CL\GCC-Collector\deps\lib,and next recompile GCC-Collector.sln

@yixinWang2018
Copy link

yixinWang2018 commented May 21, 2019

@Elin24 told me the following solution,you can have a try.Download DirectXTK.lib from https://github.com/microsoft/DirectXTK?tdsourcetag=s_pctim_aiomsg and recompile it,then put it in the folder \GCC-CL\GCC-Collector\deps\lib,and next recompile GCC-Collector.sln

Have you solved it in this way? i tried to recompile DirectXTK and repleace the old DirectXTK.lib in the fold, but the same problem is still exist after I pressing "L‘’.
I also tried to use the compiled GCC-CL.asi of GCC-Collector-Tools but failed.

@leaicc
Copy link

leaicc commented May 21, 2019

@Elin24 told me the following solution,you can have a try.Download DirectXTK.lib from https://github.com/microsoft/DirectXTK?tdsourcetag=s_pctim_aiomsg and recompile it,then put it in the folder \GCC-CL\GCC-Collector\deps\lib,and next recompile GCC-Collector.sln

Have you solved it in this way? i tried to recompile DirectXTK and repleace the old DirectXTK.lib in the fold, but the same problem is still exist after I pressing "L‘’.
I also tried to use the compiled GCC-CL.asi of GCC-Collector-Tools but failed.

Yes,i solved the problem in this way,have you put SceneDirectorAnim.txt in the game's root folder?

@leaicc
Copy link

leaicc commented May 21, 2019

@Elin24 told me the following solution,you can have a try.Download DirectXTK.lib from https://github.com/microsoft/DirectXTK?tdsourcetag=s_pctim_aiomsg and recompile it,then put it in the folder \GCC-CL\GCC-Collector\deps\lib,and next recompile GCC-Collector.sln

Have you solved it in this way? i tried to recompile DirectXTK and repleace the old DirectXTK.lib in the fold, but the same problem is still exist after I pressing "L‘’.
I also tried to use the compiled GCC-CL.asi of GCC-Collector-Tools but failed.

When you compiled DirectXTK.lib and GCC-Collector.sln,Did something go wrong?

@yixinWang2018
Copy link

@Elin24 told me the following solution,you can have a try.Download DirectXTK.lib from https://github.com/microsoft/DirectXTK?tdsourcetag=s_pctim_aiomsg and recompile it,then put it in the folder \GCC-CL\GCC-Collector\deps\lib,and next recompile GCC-Collector.sln

Have you solved it in this way? i tried to recompile DirectXTK and repleace the old DirectXTK.lib in the fold, but the same problem is still exist after I pressing "L‘’.
I also tried to use the compiled GCC-CL.asi of GCC-Collector-Tools but failed.

When you compiled DirectXTK.lib and GCC-Collector.sln,Did something go wrong?

I have sent an email for you, looking forward for your reply.

@duanzhiihao
Copy link
Author

@Elin24 told me the following solution,you can have a try.Download DirectXTK.lib from https://github.com/microsoft/DirectXTK?tdsourcetag=s_pctim_aiomsg and recompile it,then put it in the folder \GCC-CL\GCC-Collector\deps\lib,and next recompile GCC-Collector.sln

That solution doesn't work for me too, the same error occurs after I fall on the ground.

By the way, after I select the number of people F12 + 1, it seems that nothing happens when I press F5. Can that be a problem?

My system is win10, 64, visual studio is 2017, GCC-Collector isx64 + release, DirectXTK is Desktop_2017_Win10 + x64 + release, GTA V is the latest version on steam

@Elin24
Copy link
Collaborator

Elin24 commented May 22, 2019

The build information like this:
build information
If there are some problems about DirectXTK, please rebuild it through microsoft-DirectXTK and obtain a right release fitting your system, then replace corresponding lib file at \GCC-CL\GCC-Collector\deps\lib. Finally rebuild GCC-Collector.

If there are four log files in part_XX_X,

  1. areaInfo.log
  2. eyeInfo.log
  3. levelInfo.log
  4. Zheight.log

the scene creator is fine.

Before press 'L', make sure SceneDirectorAnim.txt is in the game's root folder.

If there are still some problems when run it, open the 'GCC-CL.log' file in the game's root folder, and look for corresponding error place in createCrowd.cpp according to the last line in the log file.

@duanzhiihao
Copy link
Author

Thank you for your tips. I tried your debugging method like the following:

  1. I modify the createCrowd.cpp at line 376:
auto runSceneCreator = [&](int avg2) {
    int m = readImgNum();
    for (int i = nowHave; i < m; i++) {
        log_to_file("m = " + std::to_string(m));
	std::string weather = setTimeAndWeather();
	log_to_file("line 376");
	int pedNum = avg2 * 0.25 + rand() % int(avg2 * 0.75) + 1;
	log_to_file("line 378");
	createOneScene(281, mix, mxx - mix, miy, mxy - miy, weather, pedNum);
    }
};
  1. Rebuild, copy to GTA V, fall from the sky, ERROR. The last part of GCC-CL.log is like:
[1558496187417] : finished keep camera...
[1558496187419] : start time: 1558496187
[1558496187419] : m = 5
[1558496187420] : selected hour in timeSeg[6]
[1558496188914] : hour = 20
[1558496190911] : hour = 20, CLEAR
[1558496190912] : line 376

It seems that the error occurs at line 376 of createCrowd.cpp: int pedNum = avg2 * 0.25 + rand() % int(avg2 * 0.75) + 1; I'm not familiar with C++, so could you give me some hint about it?

@MyronXie
Copy link

I have the same problems too...

Because I have problems building GCC-Collector using my own computer (maybe some config problems with Visual Studio...), so I used GCC-CL.asi and SceneDirectorAnim.txt in GCC-Collector-Tools.

I can see a man fall from sky and switch to the builded scene, and then the GTAV game crashed.

My GCC_GL.log is like

[1558506818266] : finished keep camera...
[1558506818269] : start time: 1558506818
[1558506818273] : m = 5
[1558506818302] : selected hour in timeSeg[0]
[1558506819197] : hour = 2
[1558506821213] : hour = 2, CLEAR
[1558506821219] : the pedestrian number of the scene: 7
[1558506821221] : average height = 70.396202
[1558506821224] : no anims : true

And error window msg:

SCRIPT HOOK V ERROR
CORE: An exception occurred while executing 'GCC-CL.asi' 
(0x00007FFC0ED7D890), id 33

So maybe I should try to build my own DirectXTK and GCC-Collector and then it does work? (:з」∠)

@leaicc
Copy link

leaicc commented May 23, 2019

I have the same problems too...

Because I have problems building GCC-Collector using my own computer (maybe some config problems with Visual Studio...), so I used GCC-CL.asi and SceneDirectorAnim.txt in GCC-Collector-Tools.

I can see a man fall from sky and switch to the builded scene, and then the GTAV game crashed.

My GCC_GL.log is like

[1558506818266] : finished keep camera...
[1558506818269] : start time: 1558506818
[1558506818273] : m = 5
[1558506818302] : selected hour in timeSeg[0]
[1558506819197] : hour = 2
[1558506821213] : hour = 2, CLEAR
[1558506821219] : the pedestrian number of the scene: 7
[1558506821221] : average height = 70.396202
[1558506821224] : no anims : true

And error window msg:

SCRIPT HOOK V ERROR
CORE: An exception occurred while executing 'GCC-CL.asi' 
(0x00007FFC0ED7D890), id 33

So maybe I should try to build my own DirectXTK and GCC-Collector and then it does work? (:з」∠)

Put SceneDirectorAnim.txt in the game's root folder,then recompile DirectXTK.lib and GCC-Collector.asi(x64 + release)

@Elin24
Copy link
Collaborator

Elin24 commented May 23, 2019

if setting level = 1, the asi is gong to crash. This bug is in function readLevelFile() in infoIO.cpp, which has been solved.

If still having problem, please remind me.

Sorry for my late reply. @duanzhiihao

@duanzhiihao
Copy link
Author

duanzhiihao commented May 23, 2019

@Elin24 Thank you so much, I download your new GCC-Collector and everything is working.
By the way, after I press L, all I have to do is to wait, is that right? It seems that my man is falling from the sky (then there generate some crowds) again and again, and never ends.

@Elin24
Copy link
Collaborator

Elin24 commented May 25, 2019

Yes, each time falling from sky means a time of scene or angle change. This will end when enough images have been created in each folder data/part_XX_X.

As for the number of image, you can refer to the function readImgNum() in ininfoIO.cpp, we set 5 as default image number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants