Basic Game Cache Help.

  • Thread starter Thread starter Sir-Whiskey
  • Start date Start date
S

Sir-Whiskey

Guest
I've been searching the forums and the tutorials but I can't find anything about basic game caches. I am Trying to simply save and load a hero these are the triggers I'm using. I don't know how to create the scroll window people put triggers in so I'll just write them.

Create a game cache from Campaignname.w3x
Store Hero as Hero1 in last created game cache
Save last created game cache

Next map:

Create a game cache from Campaignname.w3x
Restore unit Hero as Hero1 from last created game cache for player 1 at center of region 00

please help.

I checked the map making tutorials and they don't tell me what i'm doing wrong.
 
The scroll window is made with [code ] [/code ] tags (sans spaces).

As for the game cache, try looking at the demo campaign included with TFT and see how that one works.
 
I believe I did everything correct with the game caches. The problem is my set next level trigger can someone show me the proper format for this?
 
Hi! I'm italian my english is not very good!
I've the same problem...

I've studied the democampain but is really too hard...

I use the same code as Sir-Whiskey but it don't work....
I would to restore only the hero...

thanks!
 
Well if you can't seem to get the hero imported with the correct level, you can always make an integer equal to the level of the hero and then import the integer into the game cache. Then, upon restoration on the other map, import the integer and set the hero's level to the integer. Unfortunately, you'll lose your ability selection, so there might be another way of doing it.
 
Game cache's save ALL data of the hero if you save them in it, so there's no need to set the level. All items, abilities, levels, and experience is transferred over.

The reason it's not working is your overriding the old game cache. Use this:

Code:
First map
    Events
    Conditions
    Actions
        Game Cache - Create a game cache from Campaign.w3v
        Game Cache - Store <Your Hero> as Hero of Heroes in (Last created game cache)
        Game Cache - (Last Created Game Cache)

Code:
Untitled Trigger 002
    Events
    Conditions
    Actions
        Game Cache - Restore Hero of Heroes from Campaign.w3v for Player 1 (Red) at (Center of (Playable map area)) facing 0.00
 
XXconanXXX said:
Code:
Untitled Trigger 002
    Events
    Conditions
    Actions
        Game Cache - Restore Hero of Heroes from [U][COLOR=Red][B]Campaign.w3v[/B][/COLOR][/U] for Player 1 (Red) at (Center of (Playable map area)) facing 0.00

I'm not able to write the file chache name...i can only select "LAST CREATE GAME CHACE" and if i write it the restore dont work...
I need to use "Custom Script"? :confused:
 
Is your saved unit a custom unit-type?
If it is, remember to copy your custom data to your second map
If you're creating a campaign be sure your custom unit is created in the Object Editor that's inside the Campaign Editor
XXconanXXX said:
The reason it's not working is your overriding the old game cache.
I did some tests and saw that Create a game cache only opens the file you name (and creates it if it doesn't exists), but doesn't truncate its contents.
You need to create a game cache to set a variable to it or even reference it later with Last created game cache
 
yes is custom and i have copy the data in the campain custom unit editor....but if i add it by tool (not by code) i see the unit in the wEditor but in the game there is not....

But the problem is not this... :eek:

I read the code wrote by conan and I wrote "from Campain.w3v"...is possible to write the name of file in the code? I think not...

I'm going out of head!! :nuts:

Help! :)
 
Uh...this is nice!
But works with custom unit?

Forget for a moment the cache...is normal this:

If i add my custom hero from the table of custom unit in the new map i see it. but if run the map in game (or in test mode) the unit is not in the map! O.o

I've copied data, if i didn't it the unit can't be in the table right?
 
It works with custom units if the rawcode of both units is the same (the thing you see if you press Ctrl+D in the object editor... the h003 or whatever).
 
Heptameron said:
It works with custom units if the rawcode of both units is the same (the thing you see if you press Ctrl+D in the object editor... the h003 or whatever).

I've checked with your method (CTRL+D) and I find my error!

Now all works!!!

THANK YOU TO ALLS!!!
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    How often does the Trending Content box refresh?
  • The Helper The Helper:
    Also, in the last template there was a seperation between sticky threads and regular threads in the forum
  • Ghan Ghan:
    Not sure. It's probably part of a cron job.
  • The Helper The Helper:
    Hey Ghan, whatever cron job its part of its not running its been the same for days. If it does not work can we remove it?
  • The Helper The Helper:
    LOL! A tweak job!
  • The Helper The Helper:
    this is the fix I get from that yeah this is hard to control. disabling bots is pretty much necessary as ai and other bots would push really old threads to the top. reduce weight of view count. disable guest view tracking if you really want to push active threads to the top. a bit of tinkering for a few days with the weights and other settings should get you a decent trending widget box.
  • Ghan Ghan:
    I changed the settings a bit.
  • Ghan Ghan:
    Narrowed it to 7 days for the half-life and set views to 0 weight.
  • The Helper The Helper:
    I dont think Trending would work for this forum it would be better to just have the last 5 posts from anywhere
  • Ghan Ghan:
    Probably will have to give it some time to update.
  • Ghan Ghan:
    I'm guessing it is not retroactive.
  • Ghan Ghan:
    Next on the punch list: Update the server to Ubuntu 24.04.
  • The Helper The Helper:
    Mad Lads is new I see it displays original post date
  • The Helper The Helper:
    as long as it changes it is good - it is good now it updated and its new stuff
  • The Helper The Helper:
    One thing I have noticed and I dont know if it is by design but like 1 out of 3 times I come to the site the Anubis screen just hangs open, if I refresh it will go away but sometimes it hangs
  • Ghan Ghan:
    I've seen that as well.
  • The Helper The Helper:
    Wow - the change in the stats are major. I kind of knew it was all bots but wow, to see the effect. Why the social media sites cant do something like this I have no idea.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top