Elvish Script Conversion
9 posts
• Page 1 of 1
Elvish Script Conversion
Hey all,
Sorry to bug but looking for some help. I'm trying to revise/convert an Elvish script to work on T2. The script is below. I'm stuck on an identifier not declared error. Any direction/assistance you can provide for the conversion would be greatly appreciated. Apologies for the long code help and my newbness around this . Thanks very much.
Sorry to bug but looking for some help. I'm trying to revise/convert an Elvish script to work on T2. The script is below. I'm stuck on an identifier not declared error. Any direction/assistance you can provide for the conversion would be greatly appreciated. Apologies for the long code help and my newbness around this . Thanks very much.
- Code: Select all
removed
Last edited by titanone_fan on Mon Sep 12, 2016 11:28 am, edited 1 time in total.
- titanone_fan
- First Sergeant
- Posts: 57
- Joined: Mon Aug 22, 2016 3:04 pm
Re: Elvish Script Conversion
Add the following line to your variable declarations:
It wasn't defined anywhere that I could see.
- Code: Select all
int16 Max_Random;
It wasn't defined anywhere that I could see.
-
The_Rabid_Taco - Major
- Posts: 1066
- Joined: Wed Mar 16, 2016 6:04 pm
- Location: Pensacola, FL
Re: Elvish Script Conversion
Thanks. That corrected that error, but now I'm going to see the following error a few times:
The above relates to the following (rows 168 to 172 included):
What is the compiler expecting?
Thanks.
GPC error: xxxx.gpc(169): syntax error, unexpected T, expecting C or P_E ';'.
The above relates to the following (rows 168 to 172 included):
- Code: Select all
//Reset all persistant variables if start is held down for 4 seconds
if(get_ptime(Start_Button) >= 4000 && get_val(Start_Button) == 100 && !get_val(Left_Stick_Click)){
combo_run(Notification_Rumble);
combo_run(ResetPvars);
}
What is the compiler expecting?
Thanks.
- titanone_fan
- First Sergeant
- Posts: 57
- Joined: Mon Aug 22, 2016 3:04 pm
Re: Elvish Script Conversion
It appears the script you posted is missing a few things, I went ahead and used the script located here: http://www.consoletuner.com/gpclib/?s=1017
Conversion steps:
1. Add the following to the start of the script:
2. Search for "^define" and replace all with "int". (without the quotes)
3. Locate the following line "LW_ActionFiveOn = !LW_ActionFiveOn" and make sure it ends with a semi-colon. (";")
Conversion steps:
1. Add the following to the start of the script:
- Code: Select all
#include <T1.gph>
2. Search for "^define" and replace all with "int". (without the quotes)
3. Locate the following line "LW_ActionFiveOn = !LW_ActionFiveOn" and make sure it ends with a semi-colon. (";")
-
PaulaTheKoala - Command Sergeant Major
- Posts: 131
- Joined: Wed Aug 26, 2015 3:45 am
Re: Elvish Script Conversion
Omg ... Really, omg... I have never told to any one that regular expressions can be used on the search, and you figure out. impressed.
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Elvish Script Conversion
J2Kbr wrote:Omg ... Really, omg... I have never told to any one that regular expressions can be used on the search, and you figure out. impressed.
I was looking for a regex option but couldn't find one so I figured I'd try it and see If it supported it, glad to see it does.
-
PaulaTheKoala - Command Sergeant Major
- Posts: 131
- Joined: Wed Aug 26, 2015 3:45 am
Re: Elvish Script Conversion
@PaulaTheKoala, thanks very much. Compiled with no warnings. Cheers.
- titanone_fan
- First Sergeant
- Posts: 57
- Joined: Mon Aug 22, 2016 3:04 pm
Re: Elvish Script Conversion
J2Kbr wrote:Omg ... Really, omg... I have never told to any one that regular expressions can be used on the search, and you figure out. impressed.
LMAO. That was the first thing that I used in converting my BO3 script. LOL
-
UK_Wildcats - Brigadier General
- Posts: 2243
- Joined: Thu Jan 08, 2015 6:53 pm
Re: Elvish Script Conversion
Nice!!! You guys are really quickly. and I was here, planning in making a surprise for you all ... Lol
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
9 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 99 guests