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

it wont generate .dso encrypt script files after Torsion’s in-ide “precompile all”,and 4.0.3 source missing “TORQUE_SHIPPING” entry #1040

Open
wqwwrt opened this issue Jul 1, 2023 · 5 comments

Comments

@wqwwrt
Copy link

wqwwrt commented Jul 1, 2023

want know the right steps to generate .dso encrypt script files from community
1.Torsion Version:1.1.3311 f
02

2.(3.10.1 template)after “precompile all”,it passed ,but got no XXX.dso encrypt script files
01

  1. (4.0.3 template) it wont pass compile in Torsion
    03

and 4.0.3 source missing “TORQUE_SHIPPING” entry in cmake , want know the new method of encrypt

@wqwwrt
Copy link
Author

wqwwrt commented Jul 1, 2023

see here:
捕获

@Azaezel
Copy link
Contributor

Azaezel commented Jul 2, 2023

option(TORQUE_SHIPPING "T3D Shipping build?" OFF)
TORQUE_SHIPPING is defined cmake side. alternatively, define it within https://github.com/TorqueGameEngines/Torque3D/blob/development/Tools/CMake/torqueConfig.h

in shipping mode, any method or chain that eventually leads to an exec call will generate a dso as they load.

for precompiling, you may want to attempt the -compileall CLI command

@wqwwrt
Copy link
Author

wqwwrt commented Jul 2, 2023

option(TORQUE_SHIPPING "T3D Shipping build?" OFF)

TORQUE_SHIPPING is defined cmake side. alternatively, define it within https://github.com/TorqueGameEngines/Torque3D/blob/development/Tools/CMake/torqueConfig.h
in shipping mode, any method or chain that eventually leads to an exec call will generate a dso as they load.

for precompiling, you may want to attempt the -compileall CLI command

thank you Azaezel ! I've learned more and more systematically. Best wishes for your next release of torque3d a success!just cant wait to try it.

but it doesnt generate a dso of my unit test:
in my mind the logic is :i run the game then some scripts must be called in the "exec()"function,and the .dso appears
**want where is the issue? **
setp1: exec(scripts made by me)
01

setp2:script definetion
02

setp3:shipping mode editor with no any log
03shippingwithnolog

setp4:check .dso file doesnt appear
04

ps:but the function "compile("path",bool)" still works but its single thread which may cause “tired” and “missing”

have a good day.

@Azaezel
Copy link
Contributor

Azaezel commented Jul 3, 2023

I notice in your last example you're trying to auto-compile a .cs file. that extension was changed to .tscript to avoid confusing people should the c# parallel language support project come to completeness.

@wqwwrt
Copy link
Author

wqwwrt commented Jul 5, 2023

我注意到在您的上一个示例中,您正在尝试自动编译.cs文件。该扩展名已更改为 .tscript,以避免在 C# 并行语言支持项目完成时混淆人们。

still can‘t auto generate .dso encrypt script by “TORQUE_SHIPPING” switch ON And name it to " .tscripts".
still needs you guys official “best practice” how-to, and write to the new document,wait for it.
steps:
捕获01
捕获02
捕获03
捕获04

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

2 participants