![]() |
#1 |
User
Join Date: Apr 2009
Posts: 179
![]() |
![]() So I'm trying to convert a vJass script into Jass so I can add it into a "normal" map.
__________________It works fine just by purposly adding an extra "endfunction" in the end of my code/script (my vocabulary in programing is limited). This line will cause an error when I press Save and I can access the code. Now, I've only encountered one problem so far, and that is with the decleration of globals. I know that vJass enables me to declare globals wherever I want, but Jass can't do that! And that's where it all goes wrong, see, I have global decleration inside this script and since it's all moved to the top of the "entire code" (is 'header' the right word?), I can't access it. So... is there any way for me to edit the Global Decleration in normal WE (no add-ons) to get it working? |
![]() |
![]() |
Sponsored Links - Login to hide this ad! |
|
![]() |
#2 |
Dread Lord of the Cookies
Content Director
|
![]() Not without editing the .j file directly / with another program each time.
__________________ |
![]() |
![]() |
![]() |
#3 | |
User
Join Date: Apr 2009
Posts: 179
![]() |
![]() Quote:
![]() Well, I could try to convert all the globals into local variables, but that will destroy the JESP and efficiency. Ok not really destroy JESP, but disabling it for the moment. I can always make it JESP again. Thanks anyway ![]() |
|
![]() |
![]() |
![]() |
#4 |
It feels good
Join Date: Mar 2006
Posts: 1,305
![]() ![]() ![]() |
![]() Arent posts missing here? Anyway, try replacing the globals with constant functions, much like we all old farts used to.
__________________ |
![]() |
![]() |
![]() |
#5 |
default string
|
![]() You could just rename them to udg_GLOBALNAME and create them in the variable editor.
|
![]() |
![]() |
![]() |
#6 | |
Free Software Terrorist
Technical Director
|
![]() Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Lackadaisically Absent.
Respected User
|
![]() Out of curiosity, why do you need to do this?
__________________ |
![]() |
![]() |
![]() |
#8 |
User
Join Date: Mar 2009
Posts: 29
![]() |
![]() vJass is good, Juz feel weird why u wan to make it...
|
![]() |
![]() |
![]() |
#9 | ||
User
Join Date: Apr 2009
Posts: 179
![]() |
![]() Ouch I havn't checked this in a long time... Sorry
__________________![]() Ok 1 quote at a time: Quote:
Quote:
However, he only uses Jass in it (dunno why ![]() The only problem I found was declaring global variables, so I thought I'd ask here. There is another solution aswell, and that is to get his map to support vJass (which I don't know how, it just desplays a message saying that it's an older version) Last edited by Cheezeman : 05-05-2009 at 05:17 PM. |
||
![]() |
![]() |
![]() |
#10 |
It feels good
Join Date: Mar 2006
Posts: 1,305
![]() ![]() ![]() |
![]() is his we up to date? hje needs at least patch 1.21 so jngp works.
__________________edit: thanks whoever killed the multiple posts. I dont know why that happened and couldnt fix it either. Last edited by Alevice : 05-04-2009 at 06:59 PM. |
![]() |
![]() |
![]() |
#11 | |
User
Join Date: Apr 2009
Posts: 179
![]() |
![]() Quote:
I mean, I can't open any pre-existing maps with JNPG and implent vJass scripts to them, so I figured that he wouldn't be able to either. Am I the only one experiencing that problem? |
|
![]() |
![]() |
![]() |
#12 | |
oO
Join Date: Jul 2008
Posts: 580
![]() ![]() ![]() ![]() |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#13 | |
User
Join Date: Apr 2009
Posts: 179
![]() |
![]() Quote:
Perhaps I should create a new thread here about it. |
|
![]() |
![]() |
![]() |
#14 |
obey
|
![]() He is not your friend, abaddon him (and tell to install newgenpack)
|
![]() |
![]() |
![]() |
#15 | |
User
Project Member: TBR
|
![]() Quote:
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
|