Map restore!
Moderator: Cheaters
- mokarecman
- Old Wrinkly Member
- Posts: 284
- Joined: August 7th, 2008, 7:58 pm
- Title: Unstoppable
- Location: Amsterdam Yab Yum sex club
Map restore!
As the tittle says, is there anyone here that is able to restore a old map from 2009 to be able to run on the latest wc3 patch ?
-
- Forum Spammer
- Posts: 510
- Joined: August 18th, 2012, 2:32 am
Re: Map restore!
It's impossible except reorganize the whole map script manually, due to the fixed return bug in version 1.24, which will eventually take a lot of time.
- mokarecman
- Old Wrinkly Member
- Posts: 284
- Joined: August 7th, 2008, 7:58 pm
- Title: Unstoppable
- Location: Amsterdam Yab Yum sex club
Re: Map restore!
Damn, tnx anyway.
- haxorico
- Super Moderator
- Posts: 3190
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Contact:
Re: Map restore!
Not true. I managed to fix several maps. I cant promise a 100% restore. But it is do-able and not that hard to be honest.
- Vegas
- Shopping Maul USA Creator
- Posts: 1729
- Joined: January 18th, 2007, 11:07 am
- Title: No Comment
- Location: Calgary Canada
Re: Map restore!
Are you going to make a tutorial for the rest of us?
- haxorico
- Super Moderator
- Posts: 3190
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Contact:
Re: Map restore!
Vegas wrote:Are you going to make a tutorial for the rest of us?
No. As I said before. It is possible, but you will NOT maintain 100% of the map data. Also the ways I know are not 100% guaranteed to fix all the problems.
- Vegas
- Shopping Maul USA Creator
- Posts: 1729
- Joined: January 18th, 2007, 11:07 am
- Title: No Comment
- Location: Calgary Canada
Re: Map restore!
Ok, but any info will help others at least try to restore a map.
-
- Forum Spammer
- Posts: 510
- Joined: August 18th, 2012, 2:32 am
Re: Map restore!
haxorico wrote:Not true. I managed to fix several maps. I cant promise a 100% restore. But it is do-able and not that hard to be honest.
That means you still have to do it manually, which is actually quite hard for me, since i just learned to edit warcraft III map when version 1.24, so i actually don't really understand what is return bug. Perhaps you could explain more to me
- haxorico
- Super Moderator
- Posts: 3190
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Contact:
Re: Map restore!
JustANewbie wrote:haxorico wrote:Not true. I managed to fix several maps. I cant promise a 100% restore. But it is do-able and not that hard to be honest.
That means you still have to do it manually, which is actually quite hard for me, since i just learned to edit warcraft III map when version 1.24, so i actually don't really understand what is return bug. Perhaps you could explain more to me
Code: Select all
function thisIsABug takes handle h returns integer
return h
return 0
endfunction
This is the return bug. From what I gather, this double return function was served as a way to convert data types. In this example, it will convert a handle to an integer.
On the new version, JASS decided that a function can only return one value, instead of two (or how many there were) so this function would NOT work.
The way to get around it, is to manually convert the datatype yourself. For the example above.
Code: Select all
function thisIsABug takes handle h returns integer
return GetHandleId(h)
endfunction
GetHandleId converts the handle given to an integer value of sorts... Same way the function I2S convertes Integer to String. R2I is Real to integer, etc...