Grinch_ Posted March 26, 2018 Share Posted March 26, 2018 (edited) hey i just wantd to port a part of vc map to sa but i keep getting this error But the thing is i loaded all the vc ide files and when i check missing txds there are none.So why this msg appears again and again? Edit:I also tried finding the objet using this code obj = getNodeByName "lamppost2"select obj and set its txd to dynsings.txd which is its txd file but still same error. Edited March 26, 2018 by Inan-Ahammad Link to comment Share on other sites More sharing options...
guard3 Posted March 26, 2018 Share Posted March 26, 2018 (edited) Why do you still use 3ds Max for that? Convert DFFs to SA (aap's converter), shift IDE and IPL IDs and convert IPL to SA format. I have some simple python 3.6 scripts for such occasion. This shifts IDs (save as "ID.py"): import sysif len(sys.argv) is 2: f = open(sys.argv[1], "r") while True: line = f.readline() if not line: break line = line.split(',') try: int(line[0]) except ValueError: pass else: line[0] = int(line[0]) line[0] += 6000 #CHANGE '6000' TO ANY VALUE YOU WANT BEFORE RUNNING! line[0] = str(line[0]) line = ','.join(line) print(line, end="") f.close() And this converts VC IPL to SA format (save as "IPL.py"): import sysif len(sys.argv) is 2: f = open(sys.argv[1], "r") while True: line = f.readline() if not line: break line = line.split(',') try: int(line[0]) except ValueError: pass else: del line[6] del line[6] del line[6] line[-1] = line[-1].strip("\n") line.append(" -1\n") line = ','.join(line) print(line, end = "") f.close() In cmd you type: cd YOUR_DESKTOPPATH_TO_PYTHON_EXE DRAG_N_DROP_THE_PY_FILE DRAG_N_DROP_THE_FILE >> boo.txt boo.txt is the output. Rename to IDE/IPL whatever and enjoy Edited March 26, 2018 by guard3 Link to comment Share on other sites More sharing options...
Grinch_ Posted March 26, 2018 Author Share Posted March 26, 2018 (edited) Why do you still use 3ds Max for that? Convert DFFs to SA (aap's converter), shift IDE and IPL IDs and convert IPL to SA format. I have some simple python 3.6 scripts for such occasion. This shifts IDs (save as "ID.py"): import sysif len(sys.argv) is 2: f = open(sys.argv[1], "r") while True: line = f.readline() if not line: break line = line.split(',') try: int(line[0]) except ValueError: pass else: line[0] = int(line[0]) line[0] += 6000 #CHANGE '6000' TO ANY VALUE YOU WANT BEFORE RUNNING! line[0] = str(line[0]) line = ','.join(line) print(line, end="") f.close() And this converts VC IPL to SA format (save as "IPL.py"): import sysif len(sys.argv) is 2: f = open(sys.argv[1], "r") while True: line = f.readline() if not line: break line = line.split(',') try: int(line[0]) except ValueError: pass else: del line[6] del line[6] del line[6] line[-1] = line[-1].strip("\n") line.append(" -1\n") line = ','.join(line) print(line, end = "") f.close() In cmd you type: cd YOUR_DESKTOPPATH_TO_PYTHON_EXE DRAG_N_DROP_THE_PY_FILE DRAG_N_DROP_THE_FILE >> boo.txt boo.txt is the output. Rename to IDE/IPL whatever and enjoy Can you sent e the link to src or compiled aap's converter? edit: nevermind i just found it http://gtaforums.com/topic/752450-rel-renderware-file-converter/ and thanks. Edited March 26, 2018 by Inan-Ahammad Link to comment Share on other sites More sharing options...
Grinch_ Posted March 26, 2018 Author Share Posted March 26, 2018 ok so another question.How do i use aap's converter to convert multiple dffs at once? Link to comment Share on other sites More sharing options...
guard3 Posted March 26, 2018 Share Posted March 26, 2018 (edited) Make a folder called "in" in the same place as convdff.exe and put your dffs in thereThen open notepad and paste this: @echo offmd outFOR %%i IN (".\in\*.dff") DO (start convdff YOUR_ARGUMENTS_HERE .\in\%%~ni.dff .\out\%%~ni.dff) Save as "convert.bat" in the same place as convdff. So in the folder you have: \in\ (with all your dffs) convdff.exe convert.batDouble click "convert.bat" and grab what you want from the folder "out" it creates Edited March 26, 2018 by guard3 Link to comment Share on other sites More sharing options...
Grinch_ Posted March 27, 2018 Author Share Posted March 27, 2018 Make a folder called "in" in the same place as convdff.exe and put your dffs in there Then open notepad and paste this: @echo offmd outFOR %%i IN (".\in\*.dff") DO (start convdff YOUR_ARGUMENTS_HERE .\in\%%~ni.dff .\out\%%~ni.dff) Save as "convert.bat" in the same place as convdff. So in the folder you have: \in\ (with all your dffs) convdff.exe convert.bat Double click "convert.bat" and grab what you want from the folder "out" it creates Thanks. Link to comment Share on other sites More sharing options...
Shifaau9 Posted May 3, 2018 Share Posted May 3, 2018 how do i covert multiple .ide and .ipl files at once ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now