REMEC doesn't work? Created 1 month ago2024-07-14 12:19:44 UTC by Lei Shi Lei Shi

Created 1 month ago2024-07-14 12:19:44 UTC by Lei Shi Lei Shi

Posted 1 month ago2024-07-14 12:19:44 UTC Post #348981
I followed the setup steps for readme.md, but the entities were not converted to entities that the game code recognized after compilation.
I checked it several times, but I couldn't find the cause.
I want to know how to solve this problem, Please help me..
Copy File
$path/$file.$ext $path/$file.remec.$ext
C:\HL\Tools\remec\remec.exe
$bspdir/$file.remec.$ext jack E:\STEAM\steamapps\common\Half-Life
expertexpert
Lei Shi Lei ShiFRS石磊
Posted 1 month ago2024-07-14 12:42:26 UTC Post #348982
Posted 1 month ago2024-07-14 15:01:11 UTC Post #348983
The problem appears to be that you're creating a copy of the exported map file in the original directory ($path), but you're telling REMEC to look in the 'maps' folder of your game or mod ($bspdir):
C:\HL\Tools\remec\remec.exe $bspdir/$file.remec.$ext jack E:\STEAM\steamapps\common\Half-Life
Change $bspdir to $path, and add double quotes around the map path to ensure that any space characters in directory names won't cause any trouble:
C:\HL\Tools\remec\remec.exe "$path/$file.remec.$ext" jack "E:\STEAM\steamapps\common\Half-Life"
REMEC should do some logging so next time you can also check your compile log for errors.
Posted 1 month ago2024-07-15 13:24:56 UTC Post #348989
Thank you for your help. I have tried, but it is still not solved. It still doesn't translate into something the code can recognize.
Could you take a look at it again, please?
expert2expert2
Copy File
$path/$file.$ext $path/$file.remec.$ext
C:\HL\Tools\remec\remec.exe
"$path/$file.remec.$ext" jack "E:\STEAM\steamapps\common\Half-Life"
$bspdir/$file.$ext
Lei Shi Lei ShiFRS石磊
Posted 1 month ago2024-07-15 16:54:30 UTC Post #348991
Have you tried asking the authors of Remec for help?
Posted 1 month ago2024-07-15 18:54:34 UTC Post #348993
C:\HL\Tools\remec\remec.exe "$path/$file.remec.$ext" jack "E:\STEAM\steamapps\common\Half-Life" $bspdir/$file.$ext
That last bit ($bspdir/$file.$ext) won't do anything, REMEC doesn't let you set the output path.

Either way, you should check whether the compile log contains any errors:
User posted image
This is what I see when I run it on a map that contains a single remec_lit_model entity, and the resulting map file contains a cycler_sprite and a func_detail. What does your compile log look like?
Posted 1 month ago2024-07-16 01:01:45 UTC Post #348995
Have you tried asking the authors of Remec for help?
He's closed his page, and I can't find any more contact information. I tried to search his name on Google, but I'm not sure it was him because I didn't see the same information.
Lei Shi Lei ShiFRS石磊
Posted 1 month ago2024-07-16 01:12:06 UTC Post #348996
This is what I see when I run it on a map that contains a single remec_lit_model entity, and the resulting map file contains a cycler_sprite and a func_detail. What does your compile log look like?
Thank you for reminding me, I almost only read.log files before. I can't use my personal computer right now. I will get back to you about compilation as soon as possible.
Lei Shi Lei ShiFRS石磊
Posted 1 month ago2024-07-16 12:15:34 UTC Post #348998
I did see it. It tells me that I cannot execute the copy file "zs_test.remec.map".
"$bspdir/$file.$ext" is the sixth step of the usage tutorial to do this.
expert3expert3
** Executing...
** Command: Copy File
** Parameters: e:\csproj\maps/zs_test.map E:\CSProj\maps/zs_test.remec.map
  • Could not execute the command:
Copy File e:\csproj\maps/zs_test.map E:\CSProj\maps/zs_test.remec.map
  • Windows gave the error message:
"操作成功完成。"

** Executing...
** Command: C:\HL\Tools\remec\remec.exe
** Parameters: ""e:\csproj\maps/zs_test.remec.map"" jack "E:\STEAM\steamapps\common\Half-Life"

[2024-07-16 20:13:27.661] [remec] [error] [src\main.cpp:132]: vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
[2024-07-16 20:13:27.665] [remec] [error] [src\main.cpp:133]: class std::invalid_argument: e:\csproj\maps/zs_test.remec.map does not exist!
[2024-07-16 20:13:27.665] [remec] [error] [src\main.cpp:134]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Lei Shi Lei ShiFRS石磊
Posted 1 month ago2024-07-16 13:28:16 UTC Post #348999
Just follow the installation steps again, I don't know why there is no problem. It can now compile entities that the code can recognize, and I can interact with entities in the game.
Lei Shi Lei ShiFRS石磊
You must be logged in to post a response.