Skip to content

Conversation

@brainshead
Copy link
Contributor

@brainshead brainshead commented Jul 25, 2025

Description

Changes:
Removed deprecated +set serverProfile and +set txAdminPort ConVars.
Added export TXHOST_DATA_PATH default to define a default data directory.
Added export TXHOST_TXA_PORT {{TXADMIN_PORT}} to replace +set txAdminPort using the new method.
Added export TXHOST_GAME_NAME to support RedM also.
Startup log is now free of deprecation warnings.
Will fix/close #196

Checklist for all submissions

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Have you tested and reviewed your changes with confidence that everything works?
  • Did you branch your changes and PR from that branch and not from your master branch?
    • If not, why?:
  • You verify that the start command applied does not use a shell script
    • If some script is needed then it is part of a current yolk or a PR to add one
  • The egg was exported from the panel

Updated the egg with:
New startup script to use the txAdmin changes, this will use the new TXHOST_TXA_PORT 
Added Game Name Options: FiveM or RedM
Added Game Type : This is used to set gamename inside server.cfg in root location. Also connected to game Name to set correct value in server.cfg
Added txAdmin changes and options in the egg
Changes:
Removed deprecated +set serverProfile and +set txAdminPort ConVars.
Added export TXHOST_DATA_PATH default to define a default data directory.
Added export TXHOST_TXA_PORT {{TXADMIN_PORT}} to replace +set txAdminPort using the new method.
Added export TXHOST_GAME_NAME to support RedM also.   
Startup log is now free of deprecation warnings.
@danny6167
Copy link
Member

I think the better approach might be to just rename the variables.
I know this will break backwards compatibility, but I think this might be better than adding a ton of export foo=$bar statements into the startup comand.

@brainshead
Copy link
Contributor Author

i have tested that way , but it didnt work for me ?? it still went to standard txadmin port 40120 even if when i changed the port (and the ofc to the new TXHOST_TXA_PORT variable), only works if i put it before the 'main' startup script.

@brainshead
Copy link
Contributor Author

like i described here pelican-eggs/games-standalone#65 (comment) , the one that works on that egg acknowledge the same issue.

@brainshead
Copy link
Contributor Author

I think the better approach might be to just rename the variables. I know this will break backwards compatibility, but I think this might be better than adding a ton of export foo=$bar statements into the startup comand.

Do you have an idea why causing the variable not treated like they should ?

Changed env handling hopefully correct now ?
Renamed TXADMIN_PORT to TXHOST_TXA_PORT
Renamed GAME_NAME to TXHOST_GAME_NAME
@brainshead brainshead marked this pull request as draft November 8, 2025 15:48
@brainshead brainshead marked this pull request as ready for review December 17, 2025 16:18
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

Successfully merging this pull request may close these issues.

[Egg Update Request]: FiveM TxAdmin changes

2 participants