wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 04-28-2009, 06:29 PM   #1
Cheezeman
User
 
Cheezeman's Avatar
 
Join Date: Apr 2009
Posts: 179

Cheezeman has little to show at this moment (1)

Question Help with vJass -> Jass

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?
__________________
I have no signature yet
Cheezeman is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 04-28-2009, 06:32 PM   #2
Captain Griffen
Dread Lord of the Cookies
 
Captain Griffen's Avatar


Content Director
 
Join Date: Sep 2003
Posts: 5,375

Submissions (2)

Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)

Approved Map: Warlords[Quicksilver #2] - 1st Place

Default

Not without editing the .j file directly / with another program each time.
__________________
Quote:
Originally Posted by Earth-Fury
Griffen is correct, you are not.
Quote:
[13:32] <Akolyt0r> hmm.. stil i want to have some unused women
Captain Griffen is offline   Reply With Quote
Old 04-28-2009, 06:52 PM   #3
Cheezeman
User
 
Cheezeman's Avatar
 
Join Date: Apr 2009
Posts: 179

Cheezeman has little to show at this moment (1)

Default

Quote:
Originally Posted by Captain Griffen
Not without editing the .j file directly / with another program each time.
I was afraid of that
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
__________________
I have no signature yet
Cheezeman is offline   Reply With Quote
Old 04-28-2009, 07:40 PM
BoNe
This message has been deleted by BoNe.
Old 04-28-2009, 09:07 PM   #4
Alevice
It feels good
 
Alevice's Avatar
 
Join Date: Mar 2006
Posts: 1,305

Alevice is a jewel in the rough (190)Alevice is a jewel in the rough (190)Alevice is a jewel in the rough (190)

Default

Arent posts missing here? Anyway, try replacing the globals with constant functions, much like we all old farts used to.
__________________
_-|-_

Alevice.jones is SC2 Beta, losers.

Check out my never updated deviantart gallery!!

Kalimdor Raiders (Race Contest #1) Pastebin Page
Cavern Crawlers (Race Contest #2) Pastebin Page
Airship Race Motherfuckers!
Quote:
Originally Posted by http://ajaxian.com/archives/would-you-like-a-_-with-that-new-library-gives-js-what-it-should-have#comment-276203
- Dont solve problems that dont exist.
- Improve the wheel, dont reinvent it.
- Port the wheel if it doesnt exist in your environment.
- Integrate the wheel into your project.
- Make sure you can replace your wooden wheel for a rubber one if someone else invents it.
Alevice is offline   Reply With Quote
Old 04-28-2009, 11:33 PM   #5
Fledermaus
default string
 
Fledermaus's Avatar
 
Join Date: May 2006
Posts: 702

Submissions (1)

Fledermaus is a jewel in the rough (190)Fledermaus is a jewel in the rough (190)Fledermaus is a jewel in the rough (190)

Send a message via MSN to Fledermaus
Default

You could just rename them to udg_GLOBALNAME and create them in the variable editor.
Fledermaus is offline   Reply With Quote
Old 04-29-2009, 02:22 AM   #6
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

Quote:
Well, I could try to convert all the globals into local variables,
No...
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 04-29-2009, 08:01 AM   #7
Pyrogasm
Lackadaisically Absent.
 
Pyrogasm's Avatar


Respected User
 
Join Date: Sep 2006
Posts: 4,520

Submissions (9)

Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)

Hero Contest - Fourth place

Send a message via ICQ to Pyrogasm Send a message via AIM to Pyrogasm Send a message via MSN to Pyrogasm Send a message via Yahoo to Pyrogasm
Default

Out of curiosity, why do you need to do this?
__________________
Quote:
Originally posted by Rising_Dusk
Your spells are mostly ignored because they are not very cool so we aren't very excited to review/approve them, but you are incredibly persistent and won't give us an excuse to graveyard it. That is generally what results in a resource being ignored for a long time.

The Spell Request Thread Done for, unless someone else wants to revive it...
It lasted a damn long time.

Please; Ask for Help Appropriately














Quote:
Originally posted by Kyrbi0
Huh. Almost makes me wish I had a girlfriend, to take advantage of today (wait, no, that's not what I meant... I mean, take advantage of the fact that it is international women's day... gah, never mind).
Quote:
Originally posted by Pyrogasm
Rome may not have been built in a day, but the Romans sure as hell didn't say "look at this great city we built guys!" when they had nothing more than a bit of stone and some cottages.
Pyrogasm is offline   Reply With Quote
Old 04-30-2009, 06:23 AM   #8
kingkingyyk3
User
 
Join Date: Mar 2009
Posts: 29

kingkingyyk3 has little to show at this moment (0)

Default

vJass is good, Juz feel weird why u wan to make it...
kingkingyyk3 is offline   Reply With Quote
Old 05-04-2009, 03:58 PM   #9
Cheezeman
User
 
Cheezeman's Avatar
 
Join Date: Apr 2009
Posts: 179

Cheezeman has little to show at this moment (1)

Default

Ouch I havn't checked this in a long time... Sorry
Ok 1 quote at a time:

Quote:
Originally Posted by Fledermaus
You could just rename them to udg_GLOBALNAME and create them in the variable editor.
Might just work, I'll try it

Quote:
Originally Posted by Pyrogasm
Out of curiosity, why do you need to do this?
Well I made a spell in vJass, and a friend of mine *might* wanna implent it to his map (notice the *might*, he's not decided).
However, he only uses Jass in it (dunno why ) so instead of spending time re-creating the script I could just convert it using Ctrl + C in Syntax Check (the spell is that simple, yes).
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)
__________________
I have no signature yet

Last edited by Cheezeman : 05-05-2009 at 04:17 PM.
Cheezeman is offline   Reply With Quote
Old 05-04-2009, 05:13 PM   #10
Alevice
It feels good
 
Alevice's Avatar
 
Join Date: Mar 2006
Posts: 1,305

Alevice is a jewel in the rough (190)Alevice is a jewel in the rough (190)Alevice is a jewel in the rough (190)

Default

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.
__________________
_-|-_

Alevice.jones is SC2 Beta, losers.

Check out my never updated deviantart gallery!!

Kalimdor Raiders (Race Contest #1) Pastebin Page
Cavern Crawlers (Race Contest #2) Pastebin Page
Airship Race Motherfuckers!
Quote:
Originally Posted by http://ajaxian.com/archives/would-you-like-a-_-with-that-new-library-gives-js-what-it-should-have#comment-276203
- Dont solve problems that dont exist.
- Improve the wheel, dont reinvent it.
- Port the wheel if it doesnt exist in your environment.
- Integrate the wheel into your project.
- Make sure you can replace your wooden wheel for a rubber one if someone else invents it.

Last edited by Alevice : 05-04-2009 at 05:59 PM.
Alevice is offline   Reply With Quote
Old 05-05-2009, 04:15 PM   #11
Cheezeman
User
 
Cheezeman's Avatar
 
Join Date: Apr 2009
Posts: 179

Cheezeman has little to show at this moment (1)

Default

Quote:
Originally Posted by Alevice
is his we up to date? hje needs at least patch 1.21 so jngp works.
Why does that matter?
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?
__________________
I have no signature yet
Cheezeman is offline   Reply With Quote
Old 05-05-2009, 07:26 PM   #12
Bobo_The_Kodo
oO
 
Bobo_The_Kodo's Avatar
 
Join Date: Jul 2008
Posts: 580

Bobo_The_Kodo has a spectacular aura about (109)Bobo_The_Kodo has a spectacular aura about (109)Bobo_The_Kodo has a spectacular aura about (109)Bobo_The_Kodo has a spectacular aura about (109)

Default

Quote:
Am I the only one experiencing that problem?
Yes
Bobo_The_Kodo is offline   Reply With Quote
Old 05-06-2009, 09:44 AM   #13
Cheezeman
User
 
Cheezeman's Avatar
 
Join Date: Apr 2009
Posts: 179

Cheezeman has little to show at this moment (1)

Default

Quote:
Originally Posted by Bobo_The_Kodo
Yes
Wow that sucks...
Perhaps I should create a new thread here about it.
__________________
I have no signature yet
Cheezeman is offline   Reply With Quote
Old 05-06-2009, 11:52 AM   #14
DioD
obey
 
DioD's Avatar
 
Join Date: Feb 2006
Posts: 1,532

Submissions (4)

DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)

Send a message via ICQ to DioD
Default

He is not your friend, abaddon him (and tell to install newgenpack)
DioD is offline   Reply With Quote
Old 05-06-2009, 12:05 PM   #15
TotallyAwesome
User
 
TotallyAwesome's Avatar


Project Member: TBR
 
Join Date: Apr 2008
Posts: 582

Submissions (7)

TotallyAwesome is a jewel in the rough (164)TotallyAwesome is a jewel in the rough (164)

Send a message via ICQ to TotallyAwesome Send a message via AIM to TotallyAwesome Send a message via MSN to TotallyAwesome Send a message via Yahoo to TotallyAwesome
Default

Quote:
Originally Posted by DioD
He is not your friend, abaddon him (and tell to install newgenpack)
That. If he forces you to pwn your code you've been working on, for him, he's not a real friend, a real friend would just get newgen.
__________________
Quote:
[23-56-42] Captain Griffen orders Hakeem to say: /me is going to bed now, with Wulfy, and he hopes that he will come out again with his manhood still attached...
TotallyAwesome is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 03:33 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2017, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services